Skip to content

Commit 33bc96b

Browse files
committed
Add npm publish GitHub Action
1 parent d59b878 commit 33bc96b

File tree

1 file changed

+20
-0
lines changed

1 file 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+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v1
13+
- uses: actions/setup-node@v1
14+
with:
15+
node-version: 10
16+
- run: npm install
17+
- run: npm test
18+
- uses: JS-DevTools/npm-publish@v1
19+
with:
20+
token: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)