Skip to content

Commit 5cab137

Browse files
committed
fix: cache key for cli pr checks
1 parent eeddb71 commit 5cab137

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/cli-pr-checks.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
with:
2424
node-version: 20
2525
cache: "npm"
26-
# cache-dependency-path: extensions/cli/package-lock.json
26+
cache-dependency-path: extensions/cli/package-lock.json
2727

2828
- name: Setup packages
2929
uses: ./.github/actions/setup-packages
@@ -58,8 +58,14 @@ jobs:
5858
uses: actions/setup-node@v4
5959
with:
6060
node-version: ${{ matrix.node-version }}
61-
cache: "npm"
62-
cache-dependency-path: extensions/cli/package-lock.json
61+
62+
- name: Cache CLI node_modules
63+
uses: actions/cache@v4
64+
with:
65+
path: extensions/cli/node_modules
66+
key: ${{ runner.os }}-node${{ matrix.node-version }}-cli-modules-${{ hashFiles('extensions/cli/package-lock.json') }}
67+
restore-keys: |
68+
${{ runner.os }}-node${{ matrix.node-version }}-cli-modules-
6369
6470
- name: Setup packages
6571
uses: ./.github/actions/setup-packages

0 commit comments

Comments
 (0)