Skip to content

Commit 0066052

Browse files
committed
chore: cache node_modules in CI jobs
Possibly not dominik-friendly but we shall see.
1 parent 18bcb8a commit 0066052

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ jobs:
3636
with:
3737
cache: true
3838

39+
- uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
40+
with:
41+
path: node_modules
42+
key: node-modules-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('pnpm-lock.yaml') }}
43+
3944
- name: 📦 Install dependencies (root only, no scripts)
4045
run: pnpm install --filter . --ignore-scripts
4146

@@ -58,6 +63,11 @@ jobs:
5863
with:
5964
cache: true
6065

66+
- uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
67+
with:
68+
path: node_modules
69+
key: node-modules-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('pnpm-lock.yaml') }}
70+
6171
- name: 📦 Install dependencies
6272
run: pnpm install
6373

@@ -80,6 +90,11 @@ jobs:
8090
with:
8191
cache: true
8292

93+
- uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
94+
with:
95+
path: node_modules
96+
key: node-modules-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('pnpm-lock.yaml') }}
97+
8398
- name: 📦 Install dependencies
8499
run: pnpm install
85100

@@ -108,6 +123,11 @@ jobs:
108123
with:
109124
cache: true
110125

126+
- uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
127+
with:
128+
path: node_modules
129+
key: node-modules-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('pnpm-lock.yaml') }}
130+
111131
- name: 📦 Install dependencies
112132
run: pnpm install
113133

@@ -146,6 +166,11 @@ jobs:
146166
with:
147167
cache: true
148168

169+
- uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
170+
with:
171+
path: node_modules
172+
key: node-modules-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('pnpm-lock.yaml') }}
173+
149174
- name: 📦 Install dependencies
150175
run: pnpm install
151176

@@ -174,6 +199,11 @@ jobs:
174199
with:
175200
cache: true
176201

202+
- uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
203+
with:
204+
path: node_modules
205+
key: node-modules-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('pnpm-lock.yaml') }}
206+
177207
- name: 📦 Install dependencies
178208
run: pnpm install
179209

@@ -202,6 +232,11 @@ jobs:
202232
with:
203233
cache: true
204234

235+
- uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
236+
with:
237+
path: node_modules
238+
key: node-modules-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('pnpm-lock.yaml') }}
239+
205240
- name: 📦 Install dependencies
206241
run: pnpm install
207242

0 commit comments

Comments
 (0)