From 222d2631e40e0ddd81a8a10e95cd679d93aa660f Mon Sep 17 00:00:00 2001 From: robertlincecum Date: Mon, 4 Mar 2024 14:23:00 -0600 Subject: [PATCH] fix VERSION env var assignment --- .github/workflows/cut-release-common.yml | 16 ++++++++-------- .github/workflows/deploy-prod-common.yml | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/cut-release-common.yml b/.github/workflows/cut-release-common.yml index ec52f31..729c266 100644 --- a/.github/workflows/cut-release-common.yml +++ b/.github/workflows/cut-release-common.yml @@ -160,8 +160,8 @@ jobs: if: ${{ inputs.update_version }} run: | jq --arg new_version "v$(semver -i patch $(jq -r '.version' package.json | sed 's/^v//'))" '.version = $new_version' package.json > temp.json && mv temp.json package.json - NEW_VERSION = $(jq -r '.version' package.json) - echo "VERSION=$NEW_VERSION" >> $GITHUB_ENV + NEW_VERSION=$(jq -r '.version' package.json) + echo "VERSION=$NEW_VERSION" >> $GITHUB_ENV - name: Update Chart.yaml version run: yq eval -P -i ".appVersion=\"${{ env.VERSION }}\"" ./helm/Chart.yaml @@ -207,8 +207,8 @@ jobs: if: ${{ inputs.update_version }} run: | jq --arg new_version "v$(semver -i minor $(jq -r '.version' package.json | sed 's/^v//;s/-pre$//'))-pre" '.version = $new_version' package.json > temp.json && mv temp.json package.json - NEW_VERSION = $(jq -r '.version' package.json) - echo "VERSION=$NEW_VERSION" >> $GITHUB_ENV + NEW_VERSION=$(jq -r '.version' package.json) + echo "VERSION=$NEW_VERSION" >> $GITHUB_ENV - name: Sync package-lock.json run: npm i --package-lock-only --ignore-scripts @@ -274,8 +274,8 @@ jobs: if: ${{ inputs.update_version }} run: | jq --arg new_version "v$(semver -i patch $(jq -r '.version' package.json | sed 's/^v//'))" '.version = $new_version' package.json > temp.json && mv temp.json package.json - NEW_VERSION = $(jq -r '.version' package.json) - echo "VERSION=$NEW_VERSION" >> $GITHUB_ENV + NEW_VERSION=$(jq -r '.version' package.json) + echo "VERSION=$NEW_VERSION" >> $GITHUB_ENV - name: Update Chart.yaml version run: yq eval -P -i ".appVersion=\"${{ env.VERSION }}\"" ./helm/Chart.yaml @@ -321,8 +321,8 @@ jobs: if: ${{ inputs.update_version }} run: | jq --arg new_version "v$(semver -i minor $(jq -r '.version' package.json | sed 's/^v//;s/-pre$//'))-pre" '.version = $new_version' package.json > temp.json && mv temp.json package.json - NEW_VERSION = $(jq -r '.version' package.json) - echo "VERSION=$NEW_VERSION" >> $GITHUB_ENV + NEW_VERSION=$(jq -r '.version' package.json) + echo "VERSION=$NEW_VERSION" >> $GITHUB_ENV - name: Sync package-lock.json run: npm i --package-lock-only --ignore-scripts diff --git a/.github/workflows/deploy-prod-common.yml b/.github/workflows/deploy-prod-common.yml index bf11822..7fe0f8f 100644 --- a/.github/workflows/deploy-prod-common.yml +++ b/.github/workflows/deploy-prod-common.yml @@ -157,8 +157,8 @@ jobs: if: ${{ inputs.update_version }} run: | jq --arg new_version "v$(semver -i patch $(jq -r '.version' package.json | sed 's/^v//'))" '.version = $new_version' package.json > temp.json && mv temp.json package.json - NEW_VERSION = $(jq -r '.version' package.json) - echo "VERSION=$NEW_VERSION" >> $GITHUB_ENV + NEW_VERSION=$(jq -r '.version' package.json) + echo "VERSION=$NEW_VERSION" >> $GITHUB_ENV - name: Update Chart.yaml version run: yq eval -i ".appVersion=\"${{ env.VERSION }}\"" ./helm/Chart.yaml @@ -224,8 +224,8 @@ jobs: if: ${{ inputs.update_version }} run: | jq --arg new_version "v$(semver -i patch $(jq -r '.version' package.json | sed 's/^v//'))" '.version = $new_version' package.json > temp.json && mv temp.json package.json - NEW_VERSION = $(jq -r '.version' package.json) - echo "VERSION=$NEW_VERSION" >> $GITHUB_ENV + NEW_VERSION=$(jq -r '.version' package.json) + echo "VERSION=$NEW_VERSION" >> $GITHUB_ENV - name: Update Chart.yaml version run: yq eval -i ".appVersion=\"${{ env.VERSION }}\"" ./helm/Chart.yaml