Skip to content

Commit ef12e4d

Browse files
committed
ci: use matrix code for cache
1 parent fb2bf55 commit ef12e4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/node.js.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ jobs:
5151
uses: actions/cache@v4
5252
with:
5353
path: ~/.npm
54-
key: ${{ runner.os }}-node22-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
54+
key: ${{ runner.os }}-node${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
5555
restore-keys: |
56-
${{ runner.os }}-node22-${{ matrix.node }}
56+
${{ runner.os }}-node${{ matrix.node }}-
5757
- run: npm ci --legacy-peer-deps
5858
- run: npm run test:coverage
5959

0 commit comments

Comments
 (0)