Skip to content

Commit 1f465fc

Browse files
committed
build: add publish script
1 parent 366aeff commit 1f465fc

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.github/workflows/publish.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: publish
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-node@v1
14+
with:
15+
node-version: 11
16+
registry-url: 'https://registry.npmjs.org'
17+
- run: |
18+
npm publish
19+
env:
20+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

.npmignore

Whitespace-only changes.

0 commit comments

Comments
 (0)