Skip to content

Commit

Permalink
Combine publish-npm and publish-gpr
Browse files Browse the repository at this point in the history
  • Loading branch information
kazk committed Apr 30, 2020
1 parent 93f4be3 commit 07c4198
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/publish_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,23 @@ on:
types: [published]

jobs:
publish-npm:
publish:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 10
node-version: '10.x'
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}

publish-gpr:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 10
node-version: '10.x'
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 07c4198

Please sign in to comment.