Skip to content

Commit 1621f40

Browse files
committed
Add explicit cache dependency paths in pr-checks.yml
1 parent 225ed6c commit 1621f40

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/pr-checks.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ jobs:
4141
with:
4242
node-version: ${{ matrix.node-version }}
4343
cache: 'npm'
44+
cache-dependency-path: |
45+
package-lock.json
46+
pr-checks/package-lock.json
4447
4548
- name: Install dependencies
4649
run: |
@@ -91,6 +94,9 @@ jobs:
9194
with:
9295
node-version: 24
9396
cache: 'npm'
97+
cache-dependency-path: |
98+
package-lock.json
99+
pr-checks/package-lock.json
94100
95101
- name: Verify PR checks up to date
96102
if: always()
@@ -104,7 +110,7 @@ jobs:
104110
- name: Lint
105111
if: always()
106112
working-directory: pr-checks
107-
run: npm run lint
113+
run: npm ci && npm run lint
108114

109115
check-node-version:
110116
if: github.triggering_actor != 'dependabot[bot]'

0 commit comments

Comments
 (0)