From e407ab9e9afd677e98100894ab1788d86ec16395 Mon Sep 17 00:00:00 2001 From: Devon Rueckner Date: Tue, 1 Dec 2020 10:11:48 -0800 Subject: [PATCH] update workflow to use more standard npm control --- .github/workflows/lint.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 8e40315f2..0f4aca1f2 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -3,7 +3,7 @@ name: Lint on: [push, pull_request] jobs: - build: + lint: runs-on: ubuntu-latest steps: @@ -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 @@ -26,6 +37,3 @@ jobs: else exit 0 fi - - - name: Run linter - run: yarn run lint