File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 1010 NODE_VERSION : ' 10.x'
1111
1212jobs :
13- build-and-publish :
14- name : Build and publish Node.js package
13+ publish-to-npmjs :
1514 runs-on : ubuntu-latest
16- permissions :
17- contents : read
18- packages : write
1915 steps :
2016 - uses : actions/checkout@v3
2117 - name : Set up publishing to npmjs.com
@@ -27,11 +23,19 @@ jobs:
2723 - run : npm publish
2824 env :
2925 NODE_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
26+ publish-to-github-packages :
27+ runs-on : ubuntu-latest
28+ permissions :
29+ contents : read
30+ packages : write
31+ steps :
32+ - uses : actions/checkout@v3
3033 - name : Set up publishing to GitHub Packages
3134 uses : actions/setup-node@v3
3235 with :
3336 node-version : ${{ env.NODE_VERSION }}
3437 registry-url : ' https://npm.pkg.github.com'
38+ - run : npm ci
3539 - run : npm publish
3640 env :
3741 NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments