From f18f72acd61de6d0dd38a4c849603e59ec628290 Mon Sep 17 00:00:00 2001 From: Krzysztof Moch Date: Fri, 15 Mar 2024 12:11:46 +0100 Subject: [PATCH] chore(ci): fix CI caching (#3586) --- .github/actions/setup-node/action.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/actions/setup-node/action.yml b/.github/actions/setup-node/action.yml index e131e408..185ddc27 100644 --- a/.github/actions/setup-node/action.yml +++ b/.github/actions/setup-node/action.yml @@ -20,12 +20,12 @@ runs: uses: actions/cache@v3 with: path: | - **/node_modules + ${{ inputs.working-directory }}/node_modules .yarn/install-state.gz - key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-${{ hashFiles('**/package.json', '!node_modules/**') }} + key: ${{ runner.os }}-yarn-${{ inputs.working-directory }}-${{ hashFiles('yarn.lock') }}-${{ hashFiles('**/package.json', '!node_modules/**') }} restore-keys: | - ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} - ${{ runner.os }}-yarn- + ${{ runner.os }}-yarn-${{ inputs.working-directory }}-${{ hashFiles('yarn.lock') }}- + ${{ runner.os }}-yarn-${{ inputs.working-directory }} - name: Install dependencies working-directory: ${{ inputs.working-directory }} if: steps.yarn-cache.outputs.cache-hit != 'true'