We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fdf33a1 commit a20faedCopy full SHA for a20faed
.github/workflows/npm-publish-github-packages.yml
@@ -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
+name: Publish package to npmjs
5
6
on:
7
release:
8
- types: [created]
+ types: [published]
9
10
jobs:
11
publish-gpr:
@@ -18,8 +15,8 @@ jobs:
18
15
- uses: actions/setup-node@v3
19
16
with:
20
17
node-version: 16
21
- registry-url: https://npm.pkg.github.com/
+ registry-url: https://registry.npmjs.org
22
- run: npm ci
23
- run: npm publish
24
env:
25
- NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
+ NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
0 commit comments