Skip to content

Commit

Permalink
When releasing, update version in the lock file
Browse files Browse the repository at this point in the history
Signed-off-by: Artem Zatsarynnyi <[email protected]>
  • Loading branch information
azatsarynnyy committed Nov 7, 2024
1 parent b36785a commit 47b150b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions make-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,14 @@ updatePackageVersionAndCommitChanges() {

echo "[INFO] Set ${version} in package.json"

jq '.version |= "'${version}'"' status-app/package.json > status-app/package.json.update
mv -f status-app/package.json.update status-app/package.json
npm --no-git-tag-version version --allow-same-version --prefix status-app ${NEXT_VERSION}

# jq '.version |= "'${version}'"' status-app/package.json > status-app/package.json.update
# mv -f status-app/package.json.update status-app/package.json

echo "[INFO] Push changes to ${branch} branch"

git add status-app/package.json
git add status-app/package.json status-app/package-lock.json
git commit -s -m "${message}"
git push origin "${branch}"
}
Expand Down

0 comments on commit 47b150b

Please sign in to comment.