Skip to content

Commit

Permalink
add node_modules caching
Browse files Browse the repository at this point in the history
  • Loading branch information
cakeinpanic committed Nov 14, 2020
1 parent bc14b6f commit c20916b
Show file tree
Hide file tree
Showing 3 changed files with 1,234 additions and 1,426 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/pr-branch-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ jobs:
node-version: '13.x'

- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: node_modules
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: "install"
run: npm ci --production
Expand Down
Loading

0 comments on commit c20916b

Please sign in to comment.