Skip to content

Commit ceac45c

Browse files
committed
Add workflow to publish package on release
1 parent eaa7d35 commit ceac45c

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/publish-package.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Publish Package
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v2
13+
with:
14+
node-version: '16'
15+
cache: 'npm'
16+
registry-url: https://registry.npmjs.org/
17+
- run: npm ci
18+
- run: npm publish --access public
19+
env:
20+
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
21+
22+
- uses: actions/setup-node@v2
23+
with:
24+
node-version: '16'
25+
cache: 'npm'
26+
registry-url: https://npm.pkg.github.com/
27+
- run: npm publish --access public
28+
env:
29+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)