Skip to content

Commit

Permalink
ci(actions): 👷 update yarn lock file cache
Browse files Browse the repository at this point in the history
  • Loading branch information
navin-moorthy committed Jun 30, 2022
1 parent d5c9ac2 commit 9c45ab5
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ jobs:
id: cache-node-modules # use this to check for `cache-hit` (`steps.cache-node-modules.outputs.cache-hit != 'true'`)
with:
path: node_modules
key: modules-${{ hashFiles('yarn-lock.json') }}
key: modules-${{ hashFiles('**/yarn-lock.json') }}
restore-keys: |
modules-
- name: Install Dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
Expand All @@ -52,7 +54,9 @@ jobs:
id: cache-node-modules # use this to check for `cache-hit` (`steps.cache-node-modules.outputs.cache-hit != 'true'`)
with:
path: node_modules
key: modules-${{ hashFiles('yarn-lock.json') }}
key: modules-${{ hashFiles('**/yarn-lock.json') }}
restore-keys: |
modules-
- name: Install Dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -80,7 +84,9 @@ jobs:
id: cache-node-modules # use this to check for `cache-hit` (`steps.cache-node-modules.outputs.cache-hit != 'true'`)
with:
path: node_modules
key: modules-${{ hashFiles('yarn-lock.json') }}
key: modules-${{ hashFiles('**/yarn-lock.json') }}
restore-keys: |
modules-
- name: Install Dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -112,7 +118,9 @@ jobs:
id: cache-node-modules # use this to check for `cache-hit` (`steps.cache-node-modules.outputs.cache-hit != 'true'`)
with:
path: node_modules
key: modules-${{ hashFiles('yarn-lock.json') }}
key: modules-${{ hashFiles('**/yarn-lock.json') }}
restore-keys: |
modules-
- name: Install Dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
Expand Down

0 comments on commit 9c45ab5

Please sign in to comment.