Skip to content

Commit ae901d7

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

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

.github/workflows/cp__latest_dispatch.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,8 @@ jobs:
1919
uses: actions/setup-node@v4
2020
with:
2121
node-version: ${{ env.NODE_JS_VERSION }}
22-
23-
- name: Cache Node.js dependencies
24-
uses: actions/cache@v4
25-
with:
26-
path: utils/fe-version-scraper/node_modules
27-
key: ${{ runner.os }}-node-${{ env.NODE_JS_VERSION }}-${{ hashFiles('utils/fe-version-scraper/package-lock.json') }}
28-
restore-keys: |
29-
${{ runner.os }}-node-${{ env.NODE_JS_VERSION }}-
22+
cache: 'npm' # Auto-caches npm dependencies
23+
cache-dependency-path: utils/fe-version-scraper/package-lock.json
3024

3125
- name: Install Node.js dependencies
3226
run: npm ci

0 commit comments

Comments
 (0)