Skip to content

Commit 07c4198

Browse files
committed
Combine publish-npm and publish-gpr
1 parent 93f4be3 commit 07c4198

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.github/workflows/publish_package.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,23 @@ on:
55
types: [published]
66

77
jobs:
8-
publish-npm:
8+
publish:
99
runs-on: ubuntu-18.04
1010
steps:
1111
- uses: actions/checkout@v2
1212
- uses: actions/setup-node@v1
1313
with:
14-
node-version: 10
14+
node-version: '10.x'
1515
registry-url: https://registry.npmjs.org/
1616
- run: npm ci
1717
- run: npm publish --access public
1818
env:
1919
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
2020

21-
publish-gpr:
22-
runs-on: ubuntu-18.04
23-
steps:
24-
- uses: actions/checkout@v2
2521
- uses: actions/setup-node@v1
2622
with:
27-
node-version: 10
23+
node-version: '10.x'
2824
registry-url: https://npm.pkg.github.com/
29-
- run: npm ci
3025
- run: npm publish --access public
3126
env:
3227
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)