Skip to content

Commit 27bbd01

Browse files
committed
ci: skip bun cache restore when node_modules hits
The bun install cache (~470MB, ~104k files) only benefits 'bun install' runs. When node_modules cache hits, we skip install entirely, so restoring the bun cache wastes ~37 seconds extracting files we never use. Add condition to only restore bun cache on node_modules miss.
1 parent 2f26bed commit 27bbd01

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/actions/setup-mux/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ runs:
2323
${{ runner.os }}-${{ runner.arch }}-bun-${{ steps.bun-version.outputs.version }}-node-modules-
2424
2525
- name: Cache bun install cache
26+
if: steps.cache-node-modules.outputs.cache-hit != 'true'
2627
id: cache-bun-install
2728
uses: actions/cache@v4
2829
with:

0 commit comments

Comments
 (0)