Skip to content

Commit

Permalink
Merge pull request #12 from codewars/use-release-published
Browse files Browse the repository at this point in the history
  • Loading branch information
kazk authored Apr 30, 2020
2 parents 6daec97 + 07c4198 commit 285a4fc
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/publish_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,26 @@ name: Publish Package

on:
release:
types: [created]
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 285a4fc

Please sign in to comment.