File tree Expand file tree Collapse file tree 1 file changed +11
-21
lines changed Expand file tree Collapse file tree 1 file changed +11
-21
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-
4- name : 🚀 Publish
1+ name : " 🚀 Publish"
52
63on :
74 release :
85 types : [created]
96
107jobs :
11- build :
12- runs-on : ubuntu-latest
13- steps :
14- - uses : actions/checkout@v3
15- - uses : actions/setup-node@v3
16- with :
17- node-version : 16
18- - run : npm ci
19-
20- publish-npm :
21- needs : build
8+ publish :
229 runs-on : ubuntu-latest
2310 steps :
24- - uses : actions/checkout@v3
25- - uses : actions/setup-node@v3
11+ - name : checkout
12+ uses : actions/checkout@v3
13+ - name : node
14+ uses : actions/setup-node@v3
2615 with :
2716 node-version : 16
28- registry-url : https://registry.npmjs.org/
29- - run : npm ci
30- - run : npm run build
31- - run : npm publish
17+ registry-url : https://registry.npmjs.org
18+ - name : 🚀 Publish
19+ run : |
20+ npm install --package-lock-only &&
21+ npm publish --access public
3222 env :
3323 NODE_AUTH_TOKEN : ${{secrets.npm_token}}
You can’t perform that action at this time.
0 commit comments