Skip to content

Commit 4329296

Browse files
committed
fix: Update GitHub Actions cache path for package-lock.json
- Add cache-dependency-path pointing to scripts/package-lock.json - Fixes 'Dependencies lock file is not found' error in CI - All workflows now correctly cache npm dependencies from scripts/ directory
1 parent fcd9334 commit 4329296

4 files changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/auto-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
with:
2929
node-version: '20.x'
3030
cache: 'npm'
31+
cache-dependency-path: 'scripts/package-lock.json'
3132

3233
- name: Install dependencies
3334
working-directory: ./scripts

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
with:
2727
node-version: ${{ matrix.node-version }}
2828
cache: 'npm'
29+
cache-dependency-path: 'scripts/package-lock.json'
2930

3031
- name: Install dependencies
3132
working-directory: ./scripts

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
with:
2525
node-version: '20.x'
2626
cache: 'npm'
27+
cache-dependency-path: 'scripts/package-lock.json'
2728

2829
- name: Install dependencies
2930
working-directory: ./scripts

.github/workflows/test-coverage-check.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
with:
2525
node-version: '20.x'
2626
cache: 'npm'
27+
cache-dependency-path: 'scripts/package-lock.json'
2728

2829
- name: Install dependencies
2930
working-directory: ./scripts

0 commit comments

Comments
 (0)