File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 1- name : Publish
1+ name : Publish Package to npmjs
22on :
33 release :
44 types : [created]
55jobs :
66 build :
77 runs-on : ubuntu-latest
8+ permissions :
9+ contents : read
10+ packages : write
811 steps :
9- - uses : actions/checkout@v2
10- - uses : actions/setup-node@v2
12+ - uses : actions/checkout@v3
13+ - uses : actions/setup-node@v3
1114 with :
12- node-version : ' 14.x '
13- registry-url : ' https://registry.npmjs.org'
15+ node-version : " 16.x "
16+ registry-url : " https://registry.npmjs.org"
1417 - run : yarn install
1518 - run : yarn npm publish --access public
1619 env :
1720 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
18- - uses : actions/setup-node@v2
21+ - uses : actions/setup-node@v3
1922 with :
20- registry-url : ' https://npm.pkg.github.com'
23+ node-version : " 16.x"
24+ registry-url : " https://npm.pkg.github.com"
2125 - run : yarn npm publish --access public
2226 env :
2327 NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments