Skip to content

Commit f39811a

Browse files
committed
fix: update Node.js setup in workflows to use cache and improve dependency installation
1 parent 0f23de0 commit f39811a

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@ jobs:
2626
uses: actions/setup-node@v4
2727
with:
2828
node-version: "20"
29+
cache: "npm"
30+
cache-dependency-path: package-lock.json
2931

3032
- name: Install Dependencies
31-
run: rm -rf node_modules package-lock.json && npm install
33+
run: npm ci
3234

3335
- name: Verify and Build
3436
run: npm run verify

.github/workflows/prettier.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ jobs:
1919
uses: actions/setup-node@v4
2020
with:
2121
node-version: "20"
22+
cache: "npm"
23+
cache-dependency-path: package-lock.json
2224

2325
- name: Install Dependencies
24-
run: rm -rf node_modules package-lock.json && npm install
26+
run: npm ci
2527

2628
- name: Check Formatting
2729
run: npm run prettier-check

0 commit comments

Comments
 (0)