Skip to content

Commit 5d91b56

Browse files
authored
Merge pull request #17 from doppelgunner/github-actions
added workflow
2 parents fdf33a1 + a20faed commit 5d91b56

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed
Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
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://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3-
4-
name: Node.js Package
1+
name: Publish package to npmjs
52

63
on:
74
release:
8-
types: [created]
5+
types: [published]
96

107
jobs:
118
publish-gpr:
@@ -18,8 +15,8 @@ jobs:
1815
- uses: actions/setup-node@v3
1916
with:
2017
node-version: 16
21-
registry-url: https://npm.pkg.github.com/
18+
registry-url: https://registry.npmjs.org
2219
- run: npm ci
2320
- run: npm publish
2421
env:
25-
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
22+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)