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 }}