Skip to content

Commit 6b1721c

Browse files
committed
Tweak cache
1 parent af0735f commit 6b1721c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/smoke-tests.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ jobs:
2121
- uses: actions/setup-node@v4
2222
with:
2323
node-version: ${{ matrix.node }}
24-
cache: npm
24+
- name: Get npm cache directory
25+
id: npm-cache-dir
26+
shell: bash
27+
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
28+
- uses: actions/cache@v4
29+
with:
30+
key: ${{ matrix.runner }}-node-${{ matrix.node }}-${{ hashFiles('package-lock.json') }}
31+
path: ${{ steps.npm-cache-dir.outputs.dir }}
2532
- run: npm ci
2633
- run: npm run test-smoke

0 commit comments

Comments
 (0)