Skip to content

Commit

Permalink
test: github action cache node_modules
Browse files Browse the repository at this point in the history
  • Loading branch information
hq001 committed Dec 19, 2020
1 parent 1b11363 commit f5ca97a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,16 @@ jobs:
node-version: 12

- name: Load node_modules
id: cache-node-modules
uses: actions/cache@v2
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}

- name: install dependencies
run: yarn install --prefer-offline
- run: yarn install
if: steps.cache-node-modules.outputs.cache-hit != 'true'

- name: lint
run: yarn lint
Expand Down

0 comments on commit f5ca97a

Please sign in to comment.