Skip to content

Commit a1c11e2

Browse files
authored
🤖 ci: skip bun install on cache hit (#604)
## Summary - add cache step ids to setup-mux action so cache hits can be referenced later - skip bun install when node_modules cache restores cleanly to avoid ~2m redundant installs on warm runs ## Testing - Not run (CI-only change) _Generated with _
1 parent 8e0a257 commit a1c11e2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ runs:
1414
run: echo "version=$(bun --version)" >> $GITHUB_OUTPUT
1515

1616
- name: Cache node_modules
17+
id: cache-node-modules
1718
uses: actions/cache@v4
1819
with:
1920
path: node_modules
@@ -22,6 +23,7 @@ runs:
2223
${{ runner.os }}-${{ runner.arch }}-bun-${{ steps.bun-version.outputs.version }}-node-modules-
2324
2425
- name: Cache bun install cache
26+
id: cache-bun-install
2527
uses: actions/cache@v4
2628
with:
2729
path: ~/.bun/install/cache
@@ -30,6 +32,7 @@ runs:
3032
${{ runner.os }}-bun-cache-
3133
3234
- name: Install dependencies
35+
if: steps.cache-node-modules.outputs.cache-hit != 'true'
3336
shell: bash
3437
run: bun install --frozen-lockfile
3538

0 commit comments

Comments
 (0)