From 5fe5389fb2a4300e3242416552d175d0ed92f014 Mon Sep 17 00:00:00 2001 From: doomchild Date: Thu, 25 Jul 2024 19:20:17 -0500 Subject: [PATCH] Issue-70: Update promote script to set version in project-metadata.json closes #70 SemVer:None --- ci/promote | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) mode change 100644 => 100755 ci/promote diff --git a/ci/promote b/ci/promote old mode 100644 new mode 100755 index b5dc7b5..730c160 --- a/ci/promote +++ b/ci/promote @@ -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 () { @@ -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 () {