Skip to content

Commit

Permalink
add lint action on push
Browse files Browse the repository at this point in the history
  • Loading branch information
LonelyCpp committed May 14, 2020
1 parent acd8a9a commit 5b2a553
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Lint

on: [push]

jobs:
eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: hallee/eslint-action@master
with:
repo-token: ${{secrets.GITHUB_TOKEN}}
12 changes: 1 addition & 11 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,15 @@ on:
release:
types: [created]

jobs:
eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: hallee/eslint-action@master
with:
repo-token: ${{secrets.GITHUB_TOKEN}}

publish-npm:
needs: eslint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: yarn install --frozen-lockfile
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 comments on commit 5b2a553

Please sign in to comment.