Skip to content

Commit 0d258d9

Browse files
authored
Update publish-node.js.yml
1 parent d1799c4 commit 0d258d9

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/publish-node.js.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ jobs:
1717
with:
1818
node-version: 16
1919
cache: 'npm'
20-
- name: Publish Package
21-
uses: novom/[email protected]
22-
env:
23-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # Only needed if package is published on github packages
20+
- name: Set env
21+
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
22+
- name: Publish Package
23+
uses: JS-DevTools/npm-publish@v1
24+
with:
25+
token: ${{ secrets.NPM_TOKEN }}
26+
tag: ${{ steps.vars.outputs.tag }}

0 commit comments

Comments
 (0)