From 47b150bb4d0c37459365d55ffe5f708d71eb45df Mon Sep 17 00:00:00 2001 From: Artem Zatsarynnyi Date: Thu, 7 Nov 2024 11:48:52 +0100 Subject: [PATCH] When releasing, update version in the lock file Signed-off-by: Artem Zatsarynnyi --- make-release.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/make-release.sh b/make-release.sh index c71353f..cf53bfa 100644 --- a/make-release.sh +++ b/make-release.sh @@ -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}" }