Skip to content

Commit 285a4fc

Browse files
authored
Merge pull request #12 from codewars/use-release-published
2 parents 6daec97 + 07c4198 commit 285a4fc

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/workflows/publish_package.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,26 @@ name: Publish Package
22

33
on:
44
release:
5-
types: [created]
5+
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)