Skip to content

Commit 9a8019c

Browse files
committed
add github action for tests and npm-publish
1 parent 9047e29 commit 9a8019c

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/test.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Test
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout 🍔🍟🥤
12+
uses: actions/checkout@v2.5.0
13+
with:
14+
persist-credentials: false
15+
16+
- name: Use Node.js 😂
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: 16
20+
21+
- name: Test 🧪
22+
run: |
23+
npm ci
24+
npm run check-ci
25+
26+
- name: Publish to NPM
27+
uses: JS-DevTools/npm-publish@v1
28+
with:
29+
token: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)