Skip to content

Commit 99b99e4

Browse files
authored
Add publish script (#152)
* Add publish script * Maybe fix yaml
1 parent 9dde2fd commit 99b99e4

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/publish.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: publish on release
2+
3+
on: [release]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v1
11+
12+
- name: install dependencies
13+
run: yarn
14+
15+
- name: npm publish
16+
run: |
17+
npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
18+
npm publish || true
19+
env:
20+
CI: true
21+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 commit comments

Comments
 (0)