Skip to content

Commit 2316444

Browse files
CLOUDP-286235: Use cache for npm deps
1 parent d9e4cb0 commit 2316444

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

.github/workflows/code-health-tools.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,9 @@ jobs:
5959
uses: actions/setup-node@v4
6060
with:
6161
node-version: '20.x'
62+
cache: 'npm'
6263
- name: Install npm dependencies
63-
uses: nick-fields/retry@v3
64-
with:
65-
timeout_minutes: 10
66-
max_attempts: 3
67-
command: npm install
64+
run: npm install
6865
- name: Run Prettier
6966
run: |
7067
npm run format-check

.github/workflows/required-spec-validations.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,10 @@ jobs:
2626
- name: Setup Node
2727
uses: actions/setup-node@v4
2828
with:
29-
node-version: '20.x'
29+
node-version: '20.x'
30+
cache: 'npm'
3031
- name: Install npm dependencies
31-
uses: nick-fields/retry@v3
32-
with:
33-
timeout_minutes: 10
34-
max_attempts: 3
35-
command: npm install
32+
run: npm install
3633
- name: Download openapi-foas
3734
uses: actions/download-artifact@v4
3835
with:

0 commit comments

Comments
 (0)