Skip to content

Commit

Permalink
Use cache in workflows (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Gross authored and GitHub committed Nov 12, 2019
1 parent 4657a5f commit f0cbadd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,18 @@ jobs:
with:
node-version: '12.x'

- name: Get npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- uses: actions/cache@v1
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm ci

- name: Prettier Format Check
Expand Down

0 comments on commit f0cbadd

Please sign in to comment.