Skip to content

Commit

Permalink
Fix the regexp to extract the version from git refs (#766)
Browse files Browse the repository at this point in the history
The last npm release job failed with "error Invalid version supplied."
because the inferred version was "refs/tags/3.40.6".
  • Loading branch information
olafurpg authored Jun 3, 2022
1 parent 4236862 commit dc24b0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
- run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
- run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
- run: echo "Releasing version ${{ env.version }}"
- run: yarn version --no-git-tag-version --new-version "${{ env.VERSION }}"
working-directory: npm-distribution
Expand Down

0 comments on commit dc24b0f

Please sign in to comment.