From eb406128fbfd77f613cc9892f862e4230760de82 Mon Sep 17 00:00:00 2001 From: Maciej <100693724+m-kusnierz@users.noreply.github.com> Date: Tue, 9 Apr 2024 13:55:21 +0200 Subject: [PATCH] Use multiple package.json files as cache key (#24) --- npm-install/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/npm-install/action.yml b/npm-install/action.yml index 9f40f25..4903e0a 100644 --- a/npm-install/action.yml +++ b/npm-install/action.yml @@ -65,9 +65,9 @@ runs: **/node_modules ~/.cache/Cypress .cache/puppeteer - key: ${{ runner.os }}-modules-${{ hashFiles('package.json') }} + key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} restore-keys: | - ${{ runner.os }}-modules-${{ hashFiles('package.json') }} + ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} ${{ runner.os }}-modules- - name: Update NPM if: steps.determine-node-npm-version.outputs.npm-version != ''