Skip to content

Commit 30d4e26

Browse files
authored
fix npm version (#49)
1 parent f352380 commit 30d4e26

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,12 @@ jobs:
3333
node-version-file: 'package.json'
3434
- name: Build
3535
run: make build
36-
- run: npm version --no-commit-hooks --no-git-tag-version ${{ github.ref_name }}
36+
- name: set outputs
37+
id: vars
38+
run: |
39+
npm_version=${{ github.ref_name }}
40+
echo "npm_version=${npm_version#v}" >> "$GITHUB_OUTPUT"
41+
- run: npm version --no-commit-hooks --no-git-tag-version ${{ steps.vars.outputs.npm_version }}
3742
- run: make publish
3843
env:
3944
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)