Skip to content

Commit 8b4e2e1

Browse files
committed
WIP
1 parent 33ee359 commit 8b4e2e1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/npmpublish.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,16 @@ jobs:
2323
# checkout the repo
2424
- uses: actions/checkout@v2
2525

26+
# extract tag name
27+
- id: tag
28+
uses: actions/github-script@0.2.0
29+
with:
30+
script: return context.payload.ref.replace(/\/?refs\/tags\//, '');
31+
2632
# update version
2733
- uses: actions/setup-node@v1
2834
- run: npm ci
29-
- run: npm version ${{github.ref}}
35+
- run: npm version ${{ steps.tag.outputs.result }}
3036

3137
# publish to NPMJS
3238
- uses: actions/setup-node@v1

0 commit comments

Comments
 (0)