Skip to content

Commit 464ac17

Browse files
ci: scope node_modules cache key per matrix node version
Address doistbot review.
1 parent 6125e67 commit 464ac17

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
id: node-modules-cache
2727
uses: actions/cache@v4
2828
with:
29-
key: node-modules-cache-${{ hashFiles('**/package-lock.json', '**/.node-version') }}
29+
key: node-modules-cache-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json', '**/.node-version') }}
3030
path: node_modules/
3131

3232
- name: Install project npm dependencies

0 commit comments

Comments
 (0)