We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a58d59 commit 043c27bCopy full SHA for 043c27b
1 file changed
.github/workflows/npm-publish.yml
@@ -1,7 +1,7 @@
1
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3
4
-name: Node.js Package
+name: NPM Publish
5
6
on:
7
release:
@@ -26,8 +26,11 @@ jobs:
26
- uses: actions/setup-node@v2
27
with:
28
node-version: 16
29
- registry-url: https://registry.npmjs.org/
30
- run: npm ci
31
- - run: npm publish
32
- env:
33
- NODE_AUTH_TOKEN: ${{secrets.npm_token}}
+ - id: publish
+ uses: JS-DevTools/npm-publish@v1
+ with:
+ token: ${{ secrets.NPM_TOKEN }}
34
+ - if: steps.publish.outputs.types != 'none'
35
+ run: |
36
+ echo "Version changed: ${{ steps.publish.outputs.old-version }} => ${{ steps.publish.outputs.version }}"
0 commit comments