@devries-cameron20 / t3code-1 / commits / 6327560a89
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(ci): isolate full workspace dependency caches (#21885)

Julius Marminge committed Oct 19, 2026 at 16:26 UTC 6327560a89fac960deac935431d1a3691a0241e3
3 files changed +34 -31
.github/actions/setup-ci-deps/action.yml
+26 -5
@@ -18,13 +18,34 @@ runs:
18 path: ~/.vite-plus
19 key: vite-plus-home-v1-${{ runner.os }}-${{ runner.arch }}-${{ steps.vp.outputs.version }}
20
21 + - name: Setup Vite+
22 + uses: voidzero-dev/setup-vp@v1
23 + with:
24 + node-version-file: package.json
25 + cache: false
26 + run-install: false
27 +
28 + - name: Resolve pnpm store path
29 + id: pnpm_store
30 + shell: bash
31 + run: |
32 + store_path="$(vp pm cache dir)"
33 + echo "path=$store_path" >> "$GITHUB_OUTPUT"
34 +
35 + # setup-vp's shared cache key ignores install filters. Keep full installs in a
36 + # separate namespace, including fallback restores.
37 # The pnpm store stays a cache tarball on the runner's own disk. A store on a
38 # Blacksmith sticky disk mounts in under a second, but pnpm then copies every
39 # package across filesystems instead of hard-linking it: install took 28-49s
40 # against 9s plus an 11s restore.
25 - - name: Setup Vite+
26 - uses: voidzero-dev/setup-vp@v1
41 + - name: Cache full pnpm store
42 + uses: actions/cache@v6
43 with:
28 - node-version-file: package.json
29 - cache: true
30 - run-install: true
44 + path: ${{ steps.pnpm_store.outputs.path }}
45 + key: pnpm-full-v1-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('pnpm-lock.yaml', 'pnpm-workspace.yaml', 'package.json') }}
46 + restore-keys: |
47 + pnpm-full-v1-${{ runner.os }}-${{ runner.arch }}-
48 +
49 + - name: Install dependencies
50 + shell: bash
51 + run: vp install
.github/workflows/ci.yml
-2
@@ -482,8 +482,6 @@ jobs:
482 !/apps/mobile/modules/t3-terminal/Vendor/**/*.a
483 sparse-checkout-cone-mode: false
484
485 - # A full install: a filtered one that misses the cache first saves its
486 - # partial store under the shared lockfile key for every later job.
485 - name: Setup Vite+
486 uses: ./.github/actions/setup-ci-deps
487
.github/workflows/release.yml
+8 -24
@@ -129,12 +129,8 @@ jobs:
129 !/.repos/
130 sparse-checkout-cone-mode: false
131
132 - - name: Setup Vite+
133 - uses: voidzero-dev/setup-vp@v1
134 - with:
135 - node-version-file: package.json
136 - cache: true
137 - run-install: true
132 + - name: Setup dependencies
133 + uses: ./.github/actions/setup-ci-deps
134 env:
135 pnpm_config_cache_dir: ${{ runner.temp }}/pnpm-metadata
136
@@ -247,12 +243,8 @@ jobs:
243 !/.repos/
244 sparse-checkout-cone-mode: false
245
250 - - name: Setup Vite+
251 - uses: voidzero-dev/setup-vp@v1
252 - with:
253 - node-version-file: package.json
254 - cache: true
255 - run-install: true
246 + - name: Setup dependencies
247 + uses: ./.github/actions/setup-ci-deps
248
249 - name: Ensure Electron runtime is installed
250 run: vp run --filter @t3tools/desktop ensure:electron
@@ -281,12 +273,8 @@ jobs:
273 !/.repos/
274 sparse-checkout-cone-mode: false
275
284 - - name: Setup Vite+
285 - uses: voidzero-dev/setup-vp@v1
286 - with:
287 - node-version-file: package.json
288 - cache: true
289 - run-install: true
276 + - name: Setup dependencies
277 + uses: ./.github/actions/setup-ci-deps
278
279 - name: Ensure Electron runtime is installed
280 run: vp run --filter @t3tools/desktop ensure:electron
@@ -325,12 +313,8 @@ jobs:
313 !/.repos/
314 sparse-checkout-cone-mode: false
315
328 - - name: Setup Vite+
329 - uses: voidzero-dev/setup-vp@v1
330 - with:
331 - node-version-file: package.json
332 - cache: true
333 - run-install: true
316 + - name: Setup dependencies
317 + uses: ./.github/actions/setup-ci-deps
318
319 # No Electron setup here: `t3` (apps/server) has no Electron dependency
320 # and none of its tests touch the runtime. Only the non-server `test`