From 10a5315f92314d61b01cf1101986b042a92de09a Mon Sep 17 00:00:00 2001 From: Denis Fadeev Date: Thu, 8 Aug 2024 08:36:31 +0500 Subject: [PATCH] ci: publish v2 --- .github/workflows/publish-npm_v2.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-npm_v2.yaml b/.github/workflows/publish-npm_v2.yaml index 4e6af481..22f7695e 100644 --- a/.github/workflows/publish-npm_v2.yaml +++ b/.github/workflows/publish-npm_v2.yaml @@ -31,13 +31,13 @@ jobs: - name: Determine NPM Tag id: determine-npm-tag run: | - VERSION_TAG=${{ github.event.inputs.version }} + VERSION_TAG="${{ github.event.inputs.version }}" if [[ $VERSION_TAG == *"-"* ]]; then echo "NPM_TAG=${VERSION_TAG#*-}" >> $GITHUB_ENV else echo "NPM_TAG=latest" >> $GITHUB_ENV - name: Publish to NPM - run: yarn publish --new-version ${{ github.event.inputs.version }} --tag ${{ steps.determine-npm-tag.outputs.NPM_TAG }} --no-git-tag-version + run: yarn publish --new-version "${{ github.event.inputs.version }}" --tag "${{ env.NPM_TAG }}" --no-git-tag-version env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}