File tree Expand file tree Collapse file tree 1 file changed +4
-21
lines changed Expand file tree Collapse file tree 1 file changed +4
-21
lines changed Original file line number Diff line number Diff line change 1- name : Node.js Package
1+ name : NPM publish
22
33on :
44 release :
5- types : [created ]
5+ types : [published ]
66
77jobs :
88 build :
1212 - uses : actions/setup-node@v1
1313 with :
1414 node-version : 12
15- - run : npm ci
16- - run : npm test
15+ - run : yarn install
1716
1817 publish-npm :
1918 needs : build
2423 with :
2524 node-version : 12
2625 registry-url : https://registry.npmjs.org/
27- - run : npm ci
28- - run : npm publish
26+ - run : npm publish --access public
2927 env :
3028 NODE_AUTH_TOKEN : ${{secrets.npm_token}}
31-
32- publish-gpr :
33- needs : build
34- runs-on : ubuntu-latest
35- steps :
36- - uses : actions/checkout@v1
37- - uses : actions/setup-node@v1
38- with :
39- node-version : 12
40- registry-url : https://npm.pkg.github.com/
41- scope : ' @Rapsssito'
42- - run : npm ci
43- - run : npm publish
44- env :
45- NODE_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
You can’t perform that action at this time.
0 commit comments