chore(ci): fix CI caching (#3586)

This commit is contained in:
Krzysztof Moch 2024-03-15 12:11:46 +01:00 committed by GitHub
parent 41c6785ee8
commit f18f72acd6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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'