Skip to content

Commit

Permalink
Fix issue with publishing tags starting with v
Browse files Browse the repository at this point in the history
  • Loading branch information
ranisalt committed May 25, 2024
1 parent 35feddb commit 845a3fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ jobs:
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
yarn publish --tag ${{ inputs.npm-tag }} --new-version ${{ inputs.new-version || github.ref_name }}
yarn publish --tag ${{ inputs.npm-tag }} --new-version $(echo $VERSION | sed 's/^v//')
if: ${{ !env.ACT }}
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
VERSION: ${{ inputs.new-version || github.ref_name }}

0 comments on commit 845a3fd

Please sign in to comment.