Skip to content

Commit 7040a1e

Browse files
committed
Add npm package and github actions
1 parent 98b2712 commit 7040a1e

File tree

4 files changed

+1607
-3
lines changed

4 files changed

+1607
-3
lines changed

.github/workflows/lint.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: lint
2+
on:
3+
push:
4+
branches:
5+
- '*'
6+
- '!master'
7+
jobs:
8+
eslint:
9+
name: eslint
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: yarn
17+
- run: yarn style:check

.github/workflows/npm-publish.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: npm-publish
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
npm-publish:
8+
name: npm-publish
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v1
12+
- uses: actions/setup-node@v1
13+
with:
14+
node-version: 10
15+
- run: yarn
16+
- uses: JS-DevTools/npm-publish@v1
17+
with:
18+
token: ${{ secrets.NPM_AUTH_TOKEN }}

0 commit comments

Comments
 (0)