File tree Expand file tree Collapse file tree 1 file changed +5
-17
lines changed
Expand file tree Collapse file tree 1 file changed +5
-17
lines changed Original file line number Diff line number Diff line change 22# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
33
44name : Node.js Package
5-
65on :
76 release :
87 types : [created]
9-
108jobs :
119 build :
1210 runs-on : ubuntu-latest
1311 steps :
1412 - uses : actions/checkout@v2
15- - uses : actions/setup-node@v1
13+ # Setup .npmrc file to publish to npm
14+ - uses : actions/setup-node@v2
1615 with :
1716 node-version : 15
18- - run : npm ci
19- - run : npm test
20-
21- publish-npm :
22- needs : build
23- runs-on : ubuntu-latest
24- steps :
25- - uses : actions/checkout@v2
26- - uses : actions/setup-node@v1
27- with :
28- node-version : 12
29- registry-url : https://registry.npmjs.org/
30- - run : npm ci
17+ registry-url : " https://registry.npmjs.org"
18+ - run : npm install
3119 - run : npm publish
3220 env :
33- NODE_AUTH_TOKEN : ${{secrets.npm_token }}
21+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments