Skip to content

Commit 9826e02

Browse files
committed
Set npm version from tag
1 parent 482e917 commit 9826e02

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/release_javascript.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@ jobs:
2727
python -m pip install -r requirements.txt
2828
python setup_grammar.py javascript
2929
30+
- name: Set VERSION from tag
31+
run: |
32+
npm version ${GITHUB_REF#refs/*/v}
33+
3034
- run: npm build
35+
3136
- run: npm publish --provenance --access public
3237
env:
3338
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)