Skip to content

Commit 36ef718

Browse files
Update cp_dispatch.yml
Use actions/setup-node@v4 's inbuilt caching.
1 parent 2466d35 commit 36ef718

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

.github/workflows/cp_dispatch.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,8 @@ jobs:
2828
uses: actions/setup-node@v4
2929
with:
3030
node-version: ${{ env.NODE_JS_VERSION }}
31-
32-
- name: Cache Node.js dependencies
33-
uses: actions/cache@v4
34-
with:
35-
path: utils/fe-version-validator/node_modules
36-
key: ${{ runner.os }}-node-${{ env.NODE_JS_VERSION }}-${{ hashFiles('utils/fe-version-validator/package-lock.json') }}
37-
restore-keys: |
38-
${{ runner.os }}-node-${{ env.NODE_JS_VERSION }}-
31+
cache: 'npm' # Auto-caches npm dependencies
32+
cache-dependency-path: utils/fe-version-validator/package-lock.json
3933

4034
- name: Install Node.js dependencies
4135
run: npm ci

0 commit comments

Comments
 (0)