Skip to content

Commit

Permalink
Merge pull request #71 from doomchild/feature/issue-70
Browse files Browse the repository at this point in the history
Issue-70: Update promote script to set version in project-metadata.json
  • Loading branch information
doomchild authored Jul 26, 2024
2 parents 591b217 + 5fe5389 commit 2b067a4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ci/promote
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ __create_release_branch () {
}

__get_current_version () {
jq --raw-output '.version' < "${PROJECT_HOME}/package.json"
jq --raw-output '.version' < "${PROJECT_HOME}/project-metadata.json"
}

__get_hashes () {
Expand Down Expand Up @@ -65,9 +65,8 @@ __has_matching_counts () {
__update_version () {
local nextVersion=${1}

npm --no-git-tag-version version "${nextVersion}" \
&& npm --silent install \
&& npm audit fix
jq '.version = ${nextVersion}' "${PROJECT_HOME}/project-metadata.json" > "${PROJECT_HOME}/temp-metadata.json" \
&& mv "${PROJECT_HOME}/temp-metadata.json" "${PROJECT_HOME}/project-metadata.json"
}

__promote () {
Expand Down

0 comments on commit 2b067a4

Please sign in to comment.