Skip to content

Commit

Permalink
update workflow to use more standard npm control
Browse files Browse the repository at this point in the history
  • Loading branch information
indirectlylit committed Dec 1, 2020
1 parent 3ed05d2 commit e407ab9
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Lint
on: [push, pull_request]

jobs:
build:
lint:
runs-on: ubuntu-latest

steps:
Expand All @@ -13,11 +13,22 @@ jobs:
with:
node-version: 10.x

- uses: bahmutov/npm-install@v1
- name: npm load cache
uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-actions-npm-${{ github.sha }}
restore-keys: |
${{ runner.os }}-actions-npm-
- run: npm install

- name: Pre-generate docs
run: yarn run pregenerate

- name: Run linter
run: yarn run lint

- name: Check for modified files
run: |
if [[ `git status --porcelain --untracked-files=no` ]]; then
Expand All @@ -26,6 +37,3 @@ jobs:
else
exit 0
fi
- name: Run linter
run: yarn run lint

0 comments on commit e407ab9

Please sign in to comment.