Skip to content

Commit 181e3f5

Browse files
authoredAug 23, 2020
Workflow to deploy package to NPM
1 parent 246d605 commit 181e3f5

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
 

‎.github/workflows/main.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Publish to NPM
2+
3+
on:
4+
release:
5+
branches: [ master ]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v1
13+
with:
14+
node-version: 12
15+
- run: npm ci
16+
- run: npm test
17+
- run: npm pack
18+
- uses: JS-DevTools/npm-publish@v1
19+
with:
20+
token: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)
Please sign in to comment.