Skip to content

Commit

Permalink
Merge pull request nukeop#777 from nukeop/feature/dependency-cache
Browse files Browse the repository at this point in the history
Cache node modules
  • Loading branch information
nukeop authored Oct 7, 2020
2 parents 20b992f + 1458044 commit f0f45c1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,17 @@ jobs:

steps:
- uses: actions/checkout@master
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Use Node.js 11.x
uses: actions/setup-node@v1
with:
Expand Down

0 comments on commit f0f45c1

Please sign in to comment.