From 9c45ab59904674de0a4f44cfcc28f4b4c1b12db0 Mon Sep 17 00:00:00 2001 From: Navin Moorthy Date: Thu, 30 Jun 2022 13:52:37 +0530 Subject: [PATCH] =?UTF-8?q?ci(actions):=20=F0=9F=91=B7=20update=20yarn=20l?= =?UTF-8?q?ock=20file=20cache?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8a10d685..6d068038 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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' @@ -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' @@ -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' @@ -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'