Skip to content

Commit 845a3fd

Browse files
committed
Fix issue with publishing tags starting with v
1 parent 35feddb commit 845a3fd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,8 @@ jobs:
199199
run: |
200200
git config --global user.name 'github-actions[bot]'
201201
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
202-
yarn publish --tag ${{ inputs.npm-tag }} --new-version ${{ inputs.new-version || github.ref_name }}
202+
yarn publish --tag ${{ inputs.npm-tag }} --new-version $(echo $VERSION | sed 's/^v//')
203203
if: ${{ !env.ACT }}
204204
env:
205205
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
206+
VERSION: ${{ inputs.new-version || github.ref_name }}

0 commit comments

Comments
 (0)