File tree 1 file changed +2
-20
lines changed
1 file changed +2
-20
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://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3
-
4
1
name : Node.js Package
5
2
6
3
on :
7
4
release :
8
5
types : [created]
9
6
10
- jobs :
11
- publish-gpr :
12
- runs-on : ubuntu-latest
13
- permissions :
14
- contents : read
15
- packages : write
16
- steps :
17
- - uses : actions/checkout@v2
18
- - uses : actions/setup-node@v2
19
- with :
20
- node-version : 14
21
- registry-url : https://npm.pkg.github.com/
22
- - run : npm publish
23
- env :
24
- NODE_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
25
-
7
+ jobs :
26
8
publish-yarn :
27
9
runs-on : ubuntu-latest
28
10
permissions :
35
17
node-version : ' 14.x'
36
18
registry-url : ' https://registry.npmjs.org'
37
19
scope : ' @modifiedcommand'
38
- - run : yarn publish
20
+ - run : yarn publish --access public
39
21
env :
40
22
NODE_AUTH_TOKEN : ${{ secrets.NPMTOKEN }}
41
23
You can’t perform that action at this time.
0 commit comments