Skip to content

Commit 5b2a553

Browse files
committed
add lint action on push
1 parent acd8a9a commit 5b2a553

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

.github/workflows/lint.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Lint
2+
3+
on: [push]
4+
5+
jobs:
6+
eslint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v1
10+
- uses: hallee/eslint-action@master
11+
with:
12+
repo-token: ${{secrets.GITHUB_TOKEN}}

.github/workflows/npmpublish.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,15 @@ on:
77
release:
88
types: [created]
99

10-
jobs:
11-
eslint:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@v1
15-
- uses: hallee/eslint-action@master
16-
with:
17-
repo-token: ${{secrets.GITHUB_TOKEN}}
18-
1910
publish-npm:
20-
needs: eslint
2111
runs-on: ubuntu-latest
2212
steps:
2313
- uses: actions/checkout@v2
2414
- uses: actions/setup-node@v1
2515
with:
2616
node-version: 12
2717
registry-url: https://registry.npmjs.org/
28-
- run: npm ci
18+
- run: yarn install --frozen-lockfile
2919
- run: npm publish
3020
env:
3121
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)