From e1a9f842ade8263d8b099a49bb8d3841d274d29f Mon Sep 17 00:00:00 2001 From: Roman Barlos Date: Mon, 19 Feb 2024 09:47:58 +0100 Subject: [PATCH] chore: fix release-previous-stable.yml (2) (#198) --- .github/workflows/release-previous-stable.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-previous-stable.yml b/.github/workflows/release-previous-stable.yml index 308c3e4..230948e 100644 --- a/.github/workflows/release-previous-stable.yml +++ b/.github/workflows/release-previous-stable.yml @@ -59,11 +59,13 @@ jobs: } catch (error) { core.setFailed(error.message); }' $(npm view . versions --json | tr -d '\n ') - npm version ${PUBLISH_VERSION} --git-tag-version=false env: VERSION_TYPE: ${{ github.event.inputs.version_type }} + - name: Set version + run: | + npm version ${{ env.PUBLISH_VERSION }} --git-tag-version=false - name: Publish version - run: npm publish --tag stable-v${PUBLISH_VERSION_MAJOR} --access public + run: npm publish --tag stable-v${{ env.PUBLISH_VERSION_MAJOR }} --access public env: NODE_AUTH_TOKEN: ${{ secrets.GRAVITY_UI_BOT_NPM_TOKEN }} shell: bash