Skip to content

Commit

Permalink
ci: fix workflow caches
Browse files Browse the repository at this point in the history
  • Loading branch information
breadadams committed Feb 28, 2021
1 parent c9b6b93 commit f2d7ade
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,8 @@ jobs:
uses: actions/cache@v2
id: node-cache
with:
path: |
~/.npm
~/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 }}-
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}

- name: Install dependencies
if: steps.node-cache.outputs.cache-hit != 'true'
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,8 @@ jobs:
uses: actions/cache@v2
id: node-cache
with:
path: |
~/.npm
~/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 }}-
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}

- name: Install dependencies
if: steps.node-cache.outputs.cache-hit != 'true'
Expand Down

0 comments on commit f2d7ade

Please sign in to comment.