Skip to content

Commit 537fcd1

Browse files
committed
fix(ci): isolate dependency caches
1 parent 509b389 commit 537fcd1

2 files changed

Lines changed: 9 additions & 27 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ jobs:
3838
uses: actions/cache@v5
3939
with:
4040
path: node_modules
41-
key: node-modules-${{ hashFiles('**/bun.lock') }}
42-
restore-keys: |
43-
node-modules-
41+
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/bun.lock') }}
4442

4543
- name: Install dependencies
4644
run: bun install --frozen-lockfile
@@ -79,9 +77,7 @@ jobs:
7977
uses: actions/cache@v5
8078
with:
8179
path: node_modules
82-
key: node-modules-${{ hashFiles('**/bun.lock') }}
83-
restore-keys: |
84-
node-modules-
80+
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/bun.lock') }}
8581

8682
- name: Install dependencies
8783
run: bun install --frozen-lockfile
@@ -170,9 +166,7 @@ jobs:
170166
uses: actions/cache@v5
171167
with:
172168
path: node_modules
173-
key: node-modules-${{ hashFiles('**/bun.lock') }}
174-
restore-keys: |
175-
node-modules-
169+
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/bun.lock') }}
176170

177171
- name: Install Dependencies
178172
id: install
@@ -274,9 +268,7 @@ jobs:
274268
uses: actions/cache@v5
275269
with:
276270
path: node_modules
277-
key: node-modules-${{ hashFiles('**/bun.lock') }}
278-
restore-keys: |
279-
node-modules-
271+
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/bun.lock') }}
280272

281273
- name: Install Dependencies
282274
run: bun install --frozen-lockfile
@@ -316,9 +308,7 @@ jobs:
316308
uses: actions/cache@v5
317309
with:
318310
path: node_modules
319-
key: node-modules-${{ hashFiles('**/bun.lock') }}
320-
restore-keys: |
321-
node-modules-
311+
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/bun.lock') }}
322312

323313
- name: Install Dependencies
324314
id: install
@@ -458,9 +448,7 @@ jobs:
458448
uses: actions/cache@v5
459449
with:
460450
path: node_modules
461-
key: node-modules-${{ hashFiles('**/bun.lock') }}
462-
restore-keys: |
463-
node-modules-
451+
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/bun.lock') }}
464452

465453
- name: Install Dependencies
466454
run: bun install --frozen-lockfile
@@ -535,9 +523,7 @@ jobs:
535523
uses: actions/cache@v5
536524
with:
537525
path: node_modules
538-
key: node-modules-${{ hashFiles('**/bun.lock') }}
539-
restore-keys: |
540-
node-modules-
526+
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/bun.lock') }}
541527

542528
- name: Install Dependencies
543529
run: bun install --frozen-lockfile

.github/workflows/release.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,7 @@ jobs:
126126
uses: actions/cache@v5
127127
with:
128128
path: node_modules
129-
key: node-modules-${{ hashFiles('**/bun.lock') }}
130-
restore-keys: |
131-
node-modules-
129+
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/bun.lock') }}
132130

133131
- name: Install Dependencies
134132
# Matches the npm job's install rather than CI's --frozen-lockfile, so
@@ -186,9 +184,7 @@ jobs:
186184
uses: actions/cache@v5
187185
with:
188186
path: node_modules
189-
key: node-modules-${{ hashFiles('**/bun.lock') }}
190-
restore-keys: |
191-
node-modules-
187+
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/bun.lock') }}
192188

193189
- name: Install Dependencies
194190
run: bun install

0 commit comments

Comments
 (0)