Skip to content

Commit a585326

Browse files
committed
ci: enable npm cache
1 parent bc6964c commit a585326

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

.github/workflows/dev-publish.yml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
- uses: actions/setup-node@v4
2020
with:
2121
node-version: 22
22+
cache: 'npm'
2223
- run: npm ci
2324
- run: npm test
2425
env:

.github/workflows/npm-publish.yml

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
- uses: actions/setup-node@v4
2222
with:
2323
node-version: 22
24+
cache: 'npm'
2425
- run: npm ci
2526
- run: npm test
2627
env:

.github/workflows/test.yml

+6
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
uses: actions/setup-node@v4
2222
with:
2323
node-version: 22.x
24+
cache: 'npm'
2425

2526
- run: npm ci
2627
- run: |
@@ -48,6 +49,7 @@ jobs:
4849
uses: actions/setup-node@v4
4950
with:
5051
node-version: 22.x
52+
cache: 'npm'
5153

5254
- uses: actions/download-artifact@v4
5355
with:
@@ -84,6 +86,7 @@ jobs:
8486
uses: actions/setup-node@v4
8587
with:
8688
node-version: 22.x
89+
cache: 'npm'
8790

8891
- uses: actions/download-artifact@v4
8992
with:
@@ -109,6 +112,7 @@ jobs:
109112
uses: actions/setup-node@v4
110113
with:
111114
node-version: 16.x
115+
cache: 'npm'
112116

113117
- uses: actions/download-artifact@v4
114118
with:
@@ -176,6 +180,7 @@ jobs:
176180
uses: actions/setup-node@v4
177181
with:
178182
node-version: ${{ matrix.node-version }}
183+
cache: 'npm'
179184
- uses: actions/download-artifact@v4
180185
with:
181186
name: build
@@ -201,6 +206,7 @@ jobs:
201206
uses: actions/setup-node@v4
202207
with:
203208
node-version: 22.x
209+
cache: 'npm'
204210
- name: Install deps
205211
run: npm ci
206212
- name: Install TypeScript ${{ matrix.ts }}

0 commit comments

Comments
 (0)