chore(ci): fix CI caching (#3586)
This commit is contained in:
parent
41c6785ee8
commit
f18f72acd6
8
.github/actions/setup-node/action.yml
vendored
8
.github/actions/setup-node/action.yml
vendored
@ -20,12 +20,12 @@ runs:
|
|||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
**/node_modules
|
${{ inputs.working-directory }}/node_modules
|
||||||
.yarn/install-state.gz
|
.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: |
|
restore-keys: |
|
||||||
${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
|
${{ runner.os }}-yarn-${{ inputs.working-directory }}-${{ hashFiles('yarn.lock') }}-
|
||||||
${{ runner.os }}-yarn-
|
${{ runner.os }}-yarn-${{ inputs.working-directory }}
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
working-directory: ${{ inputs.working-directory }}
|
working-directory: ${{ inputs.working-directory }}
|
||||||
if: steps.yarn-cache.outputs.cache-hit != 'true'
|
if: steps.yarn-cache.outputs.cache-hit != 'true'
|
||||||
|
Loading…
Reference in New Issue
Block a user