Skip to content

Commit dc24b0f

Browse files
authored
Fix the regexp to extract the version from git refs (#766)
The last npm release job failed with "error Invalid version supplied." because the inferred version was "refs/tags/3.40.6".
1 parent 4236862 commit dc24b0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
with:
4646
node-version: 16
4747
registry-url: 'https://registry.npmjs.org'
48-
- run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
48+
- run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
4949
- run: echo "Releasing version ${{ env.version }}"
5050
- run: yarn version --no-git-tag-version --new-version "${{ env.VERSION }}"
5151
working-directory: npm-distribution

0 commit comments

Comments
 (0)