Skip to content

Commit e9bc8a0

Browse files
committed
fix(ci): use pnpm-lock.yaml for calculating cache hash
1 parent 751d1c9 commit e9bc8a0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/actions/setup/action.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@ runs:
2121
path: |
2222
**/node_modules
2323
pnpm-lock.yaml
24-
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm.lock') }}-${{ hashFiles('**/package.json', '!node_modules/**') }}
24+
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}-${{ hashFiles('**/package.json', '!node_modules/**') }}
2525
restore-keys: |
26-
${{ runner.os }}-pnpm-${{ hashFiles('pnpm.lock') }}
27-
${{ runner.os }}-pnpm-
26+
${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
2827
2928
- name: Install dependencies
3029
if: steps.pnpm-cache.outputs.cache-hit != 'true'

0 commit comments

Comments
 (0)