File tree Expand file tree Collapse file tree 2 files changed +18
-39
lines changed
Expand file tree Collapse file tree 2 files changed +18
-39
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- name : Publish Package to npmjs
1+ # .github/workflows/release-package.yml
2+ name : on release
3+
24on :
3- release :
4- types : [published]
5+ release :
6+ types : [created]
7+
58jobs :
6- build :
7- runs-on : ubuntu-latest
8- steps :
9- - uses : actions/checkout@v4
10- # Setup .npmrc file to publish to npm
11- - uses : actions/setup-node@v3
12- with :
13- node-version : ' 18.x'
14- registry-url : ' https://registry.npmjs.org'
15- - run : npm install
16- - run : npm publish
17- env :
18- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
9+ publish-github-registry :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v3
13+ - uses : actions/setup-node@v3
14+ with :
15+ node-version : 18
16+ registry-url : https://npm.pkg.github.com/
17+ - run : yarn install
18+ - run : yarn publish
19+ env :
20+ NODE_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
You can’t perform that action at this time.
0 commit comments