File tree Expand file tree Collapse file tree 1 file changed +17
-25
lines changed
Expand file tree Collapse file tree 1 file changed +17
-25
lines changed Original file line number Diff line number Diff line change 11name : Node.js Package
22
33on :
4- release :
5- types : [created]
4+ release :
5+ types : [created]
66
77jobs :
8- build :
9- runs-on : ubuntu-latest
10- steps :
11- - uses : actions/checkout@v3
12- - uses : actions/setup-node@v3
13- with :
14- node-version : 16
15- - run : npm ci
16- - run : npm test
17-
18- publish-npm :
19- needs : build
20- runs-on : ubuntu-latest
21- steps :
22- - uses : actions/checkout@v3
23- - uses : actions/setup-node@v3
24- with :
25- node-version : 16
26- registry-url : https://registry.npmjs.org/
27- - run : npm ci
28- - run : npm publish
29- env :
30- NODE_AUTH_TOKEN : ${{secrets.npm_token}}
8+ publish-npm :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v3
12+ - uses : actions/setup-node@v3
13+ with :
14+ node-version : 16
15+ cache : " npm"
16+ registry-url : https://registry.npmjs.org/
17+ - run : npm -g install webpack webpack-cli
18+ - run : npm -g install rollup
19+ - run : npm install
20+ - run : npm publish
21+ env :
22+ NODE_AUTH_TOKEN : ${{secrets.npm_token}}
You can’t perform that action at this time.
0 commit comments