Skip to content

Commit 93c7f0d

Browse files
authored
Update publish-node.js.yml
1 parent 6b345ea commit 93c7f0d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
- run: git config --global user.name "GitHub CD bot"
2121
- run: git config --global user.email "github-cd-bot@example.com"
2222
- run: npm version ${{ github.event.release.tag_name }}
23-
- run: npm publish
24-
env:
25-
# Use a token to publish to NPM. See below for how to set it up
26-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
23+
- uses: JS-DevTools/npm-publish@v1
24+
with:
25+
token: ${{ secrets.NPM_TOKEN }}
26+
2727
# push the version changes to GitHub
2828
- run: git push
2929
env:

0 commit comments

Comments
 (0)