Skip to content

Commit 9a6826d

Browse files
committed
2 parents d93703b + 3add925 commit 9a6826d

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,10 @@
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-
41
name: Node.js Package
52

63
on:
74
release:
85
types: [created]
96

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:
268
publish-yarn:
279
runs-on: ubuntu-latest
2810
permissions:
@@ -35,7 +17,7 @@ jobs:
3517
node-version: '14.x'
3618
registry-url: 'https://registry.npmjs.org'
3719
scope: '@modifiedcommand'
38-
- run: yarn publish
20+
- run: yarn publish --access public
3921
env:
4022
NODE_AUTH_TOKEN: ${{ secrets.NPMTOKEN }}
4123

0 commit comments

Comments
 (0)