File tree Expand file tree Collapse file tree 1 file changed +16
-6
lines changed
Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Original file line number Diff line number Diff line change 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-
41name : Node.js Package
52
63on :
74 release :
85 types : [created]
96
7+ permissions :
8+ contents : read
9+ packages : write
10+
1011jobs :
1112 build :
1213 runs-on : ubuntu-latest
2122 publish-gpr :
2223 needs : build
2324 runs-on : ubuntu-latest
24- permissions :
25- contents : read
26- packages : write
2725 steps :
2826 - uses : actions/checkout@v6
2927 - uses : actions/setup-node@v6
3432 - run : npm publish
3533 env :
3634 NODE_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
35+
36+ publish-npmjs :
37+ needs : build
38+ runs-on : ubuntu-latest
39+ steps :
40+ - uses : actions/checkout@v6
41+ - uses : actions/setup-node@v6
42+ with :
43+ node-version : 20
44+ registry-url : https://registry.npmjs.org/
45+ - run : npm ci
46+ - run : npm publish
You can’t perform that action at this time.
0 commit comments