Skip to content

Commit c250a69

Browse files
ci: enable cache of npm modules
Note: `npm ci` is still required because it's the npm global cache which is cached, not the node_modules directory.
1 parent 85b26e5 commit c250a69

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

.github/workflows/build-examples.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
uses: actions/setup-node@v6
3838
with:
3939
node-version: 20
40+
cache: npm
4041

4142
- name: Build ${{ matrix.example }}
4243
run: |

.github/workflows/ci-browser.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
uses: actions/setup-node@v6
2727
with:
2828
node-version: 20
29+
cache: npm
2930

3031
- name: Install dependencies
3132
run: npm ci

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ jobs:
5555
uses: actions/setup-node@v6
5656
with:
5757
node-version: ${{ matrix.node-version }}
58+
cache: npm
5859

5960
- name: Install dependencies
6061
run: npm ci

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
with:
2525
node-version: 24
2626
registry-url: 'https://registry.npmjs.org'
27+
cache: npm
2728

2829
- name: Install dependencies
2930
run: npm ci

0 commit comments

Comments
 (0)