The best way to control Claude Code, Codex and more from any computer or phone
ci(release): releases no longer reinstall Vite+ in every job (#26305)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Theo Browne committed
Oct 27, 2026 at 23:53 UTC
a9418a1206f9f092d6d5769f6a62fb8da2ecc6ec
3 files changed
+83
-89
.github/actions/setup-ci-deps/action.yml
+50
-11
@@ -5,6 +5,14 @@ inputs:
5
description: Read-only credential for the private maintainer task cache
6
required: false
7
default: ""
8
+ install:
9
+ description: Set to "false" to set up Vite+ only, with no pnpm store or install
10
+ required: false
11
+ default: "true"
12
+ install-args:
13
+ description: Arguments for `vp install`, such as filters. Empty installs the whole workspace.
14
+ required: false
15
+ default: ""
16
runs:
17
using: composite
18
steps:
@@ -19,10 +27,11 @@ runs:
27
echo "node=$(jq -r '.engines.node' package.json)" >> "$GITHUB_OUTPUT"
28
echo "pnpm=$(jq -r '.packageManager' package.json)" >> "$GITHUB_OUTPUT"
29
30
+ # Pinned because release-desktop.yml signs builds with this action in the job.
31
- name: Cache Vite+
32
id: vp_cache
33
if: steps.vp.outputs.version != ''
25
- uses: actions/cache@v6
34
+ uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6
35
with:
36
path: ~/.vite-plus
37
key: vite-plus-home-v2-${{ runner.os }}-${{ runner.arch }}-${{ steps.vp.outputs.version }}-node${{ steps.vp.outputs.node }}-${{ steps.vp.outputs.pnpm }}
@@ -40,36 +49,66 @@ runs:
49
50
- name: Setup Vite+
51
if: steps.vp_cache.outputs.cache-hit != 'true'
43
- uses: voidzero-dev/setup-vp@v1
52
+ uses: voidzero-dev/setup-vp@250f29ce396baf5e8f24498e17c0dfdebabc26eb # v1
53
with:
54
node-version-file: package.json
55
cache: false
56
run-install: false
57
49
- - name: Resolve pnpm store path
58
+ # A shared key lets whichever install saves first, often a small filtered
59
+ # one, become every job's store. Each set of install args gets its own.
60
+ - name: Resolve pnpm store
61
id: pnpm_store
62
+ if: inputs.install == 'true'
63
shell: bash
64
+ env:
65
+ INSTALL_ARGS: ${{ inputs.install-args }}
66
run: |
53
- store_path="$(vp pm cache dir)"
54
- echo "path=$store_path" >> "$GITHUB_OUTPUT"
67
+ echo "path=$(vp pm cache dir)" >> "$GITHUB_OUTPUT"
68
+ if [[ -z "$INSTALL_ARGS" ]]; then
69
+ echo "namespace=full" >> "$GITHUB_OUTPUT"
70
+ else
71
+ echo "namespace=filtered-$(printf '%s' "$INSTALL_ARGS" | cksum | cut -d' ' -f1)" >> "$GITHUB_OUTPUT"
72
+ fi
73
56
- # setup-vp's shared cache key ignores install filters. Keep full installs in a
57
- # separate namespace, including fallback restores.
74
+ # Filtered installs prefer the current full store, which holds every package,
75
+ # over an older store of their own.
76
# The pnpm store stays a cache tarball on the runner's own disk. A store on a
77
# Blacksmith sticky disk mounts in under a second, but pnpm then copies every
78
# package across filesystems instead of hard-linking it: install took 28-49s
79
# against 9s plus an 11s restore.
62
- - name: Cache full pnpm store
63
- uses: actions/cache@v6
80
+ - name: Restore pnpm store
81
+ id: pnpm_cache
82
+ if: inputs.install == 'true'
83
+ uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6
84
with:
85
path: ${{ steps.pnpm_store.outputs.path }}
66
- key: pnpm-full-v1-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('pnpm-lock.yaml', 'pnpm-workspace.yaml', 'package.json') }}
86
+ key: pnpm-${{ steps.pnpm_store.outputs.namespace }}-v1-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('pnpm-lock.yaml', 'pnpm-workspace.yaml', 'package.json') }}
87
restore-keys: |
88
+ pnpm-full-v1-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('pnpm-lock.yaml', 'pnpm-workspace.yaml', 'package.json') }}
89
+ pnpm-${{ steps.pnpm_store.outputs.namespace }}-v1-${{ runner.os }}-${{ runner.arch }}-
90
pnpm-full-v1-${{ runner.os }}-${{ runner.arch }}-
91
92
- name: Install dependencies
93
+ if: inputs.install == 'true'
94
shell: bash
72
- run: vp install
95
+ env:
96
+ INSTALL_ARGS: ${{ inputs.install-args }}
97
+ # Unquoted so each filter is its own argument.
98
+ run: vp install $INSTALL_ARGS
99
+
100
+ # A filtered install that started from the current full store adds nothing
101
+ # worth a second copy of it.
102
+ - name: Save pnpm store
103
+ if: >-
104
+ inputs.install == 'true' &&
105
+ steps.pnpm_cache.outputs.cache-hit != 'true' &&
106
+ (steps.pnpm_store.outputs.namespace == 'full' ||
107
+ steps.pnpm_cache.outputs.cache-matched-key != format('pnpm-full-v1-{0}-{1}-{2}', runner.os, runner.arch, hashFiles('pnpm-lock.yaml', 'pnpm-workspace.yaml', 'package.json')))
108
+ uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6
109
+ with:
110
+ path: ${{ steps.pnpm_store.outputs.path }}
111
+ key: ${{ steps.pnpm_cache.outputs.cache-primary-key }}
112
113
- name: Enable shared task cache
114
if: >-
.github/workflows/release-desktop.yml
+4
-9
@@ -147,13 +147,6 @@ jobs:
147
git sparse-checkout set --no-cone '/*' '!/.repos/'
148
git -c checkout.workers=0 checkout --detach FETCH_HEAD
149
150
- - name: Setup Vite+
151
- uses: voidzero-dev/setup-vp@250f29ce396baf5e8f24498e17c0dfdebabc26eb # v1
152
- with:
153
- node-version-file: package.json
154
- cache: true
155
- run-install: false
156
-
150
# pnpm checks the lockfile and policy before reusing this result. A missing
151
# artifact leaves the cache empty, so installation runs the checks again.
152
- name: Download dependency verification
@@ -163,10 +156,12 @@ jobs:
156
name: release-dependency-verification
157
path: ${{ runner.temp }}/pnpm-metadata
158
166
- - name: Install desktop dependencies
159
+ - name: Setup dependencies
160
+ uses: ./.github/actions/setup-ci-deps
161
+ with:
162
+ install-args: --filter=@t3tools/desktop... --filter=t3... --filter=@t3tools/scripts...
163
env:
164
pnpm_config_cache_dir: ${{ runner.temp }}/pnpm-metadata
169
- run: vp install --filter=@t3tools/desktop... --filter=t3... --filter=@t3tools/scripts...
165
166
- name: Cache resource monitor
167
id: resource_monitor_cache
.github/workflows/release.yml
+29
-69
@@ -420,14 +420,10 @@ jobs:
420
!/.repos/
421
sparse-checkout-cone-mode: false
422
423
- - name: Setup Vite+
424
- uses: voidzero-dev/setup-vp@v1
423
+ - name: Setup dependencies
424
+ uses: ./.github/actions/setup-ci-deps
425
with:
426
- node-version-file: package.json
427
- cache: true
428
- run-install: |
429
- args:
430
- - --filter=t3code-relay...
426
+ install-args: --filter=t3code-relay...
427
428
# The deployed stack's outputs, read from Alchemy's state store without
429
# planning or applying. Select the backend explicitly to avoid loading
@@ -522,13 +518,6 @@ jobs:
518
!/.repos/
519
sparse-checkout-cone-mode: false
520
525
- - name: Setup Vite+
526
- uses: voidzero-dev/setup-vp@v1
527
- with:
528
- node-version-file: package.json
529
- cache: true
530
- run-install: false
531
-
521
# pnpm checks the lockfile and policy before reusing this result. A missing
522
# artifact leaves the cache empty, so installation runs the checks again.
523
- name: Download dependency verification
@@ -538,10 +527,12 @@ jobs:
527
name: release-dependency-verification
528
path: ${{ runner.temp }}/pnpm-metadata
529
541
- - name: Install bundle dependencies
530
+ - name: Setup dependencies
531
+ uses: ./.github/actions/setup-ci-deps
532
+ with:
533
+ install-args: --filter=t3... --filter=@t3tools/web... --filter=@t3tools/desktop... --filter=@t3tools/scripts...
534
env:
535
pnpm_config_cache_dir: ${{ runner.temp }}/pnpm-metadata
544
- run: vp install --filter=t3... --filter=@t3tools/web... --filter=@t3tools/desktop... --filter=@t3tools/scripts...
536
537
- name: Download relay client tracing config
538
uses: actions/download-artifact@v8
@@ -781,14 +772,10 @@ jobs:
772
!/.repos/
773
sparse-checkout-cone-mode: false
774
784
- - name: Setup Vite+
785
- uses: voidzero-dev/setup-vp@v1
775
+ - name: Setup dependencies
776
+ uses: ./.github/actions/setup-ci-deps
777
with:
787
- node-version-file: package.json
788
- cache: true
789
- run-install: |
790
- args:
791
- - --filter=@t3tools/scripts...
778
+ install-args: --filter=@t3tools/scripts...
779
780
- name: Download all desktop artifacts
781
uses: actions/download-artifact@v8
@@ -977,15 +964,10 @@ jobs:
964
!/.repos/
965
sparse-checkout-cone-mode: false
966
980
- - name: Setup Vite+
981
- uses: voidzero-dev/setup-vp@v1
967
+ - name: Setup dependencies
968
+ uses: ./.github/actions/setup-ci-deps
969
with:
983
- node-version-file: package.json
984
- cache: true
985
- run-install: |
986
- args:
987
- - --filter=t3...
988
- - --filter=@t3tools/scripts...
970
+ install-args: --filter=t3... --filter=@t3tools/scripts...
971
972
- name: Build the npm launcher
973
run: node scripts/build-npm-launcher.ts --version "${{ needs.preflight.outputs.version }}" --output-dir npm-packages
@@ -1041,15 +1023,10 @@ jobs:
1023
!/.repos/
1024
sparse-checkout-cone-mode: false
1025
1044
- - name: Setup Vite+
1045
- uses: voidzero-dev/setup-vp@v1
1026
+ - name: Setup dependencies
1027
+ uses: ./.github/actions/setup-ci-deps
1028
with:
1047
- node-version-file: package.json
1048
- cache: true
1049
- run-install: |
1050
- args:
1051
- - --filter=@t3tools/scripts...
1052
- - --filter=@t3tools/web...
1029
+ install-args: --filter=@t3tools/scripts... --filter=@t3tools/web...
1030
1031
- name: Download relay client tracing config
1032
uses: actions/download-artifact@v8
@@ -1145,11 +1122,9 @@ jobs:
1122
sparse-checkout-cone-mode: false
1123
1124
- name: Setup Vite+
1148
- uses: voidzero-dev/setup-vp@v1
1125
+ uses: ./.github/actions/setup-ci-deps
1126
with:
1150
- node-version-file: package.json
1151
- cache: false
1152
- run-install: false
1127
+ install: false
1128
1129
- name: Alias channel
1130
shell: bash
@@ -1216,14 +1191,10 @@ jobs:
1191
!/.repos/
1192
sparse-checkout-cone-mode: false
1193
1219
- - name: Setup Vite+
1220
- uses: voidzero-dev/setup-vp@v1
1194
+ - name: Setup dependencies
1195
+ uses: ./.github/actions/setup-ci-deps
1196
with:
1222
- node-version-file: package.json
1223
- cache: true
1224
- run-install: |
1225
- args:
1226
- - --filter=@t3tools/marketing...
1197
+ install-args: --filter=@t3tools/marketing...
1198
1199
- id: deploy
1200
name: Build staged deployment
@@ -1287,11 +1258,9 @@ jobs:
1258
sparse-checkout-cone-mode: false
1259
1260
- name: Setup Vite+
1290
- uses: voidzero-dev/setup-vp@v1
1261
+ uses: ./.github/actions/setup-ci-deps
1262
with:
1292
- node-version-file: package.json
1293
- cache: false
1294
- run-install: false
1263
+ install: false
1264
1265
- name: Promote marketing site
1266
shell: bash
@@ -1346,15 +1315,10 @@ jobs:
1315
echo "name=${APP_SLUG}[bot]" >> "$GITHUB_OUTPUT"
1316
echo "email=${user_id}+${APP_SLUG}[bot]@users.noreply.github.com" >> "$GITHUB_OUTPUT"
1317
1349
- - name: Setup Vite+
1350
- uses: voidzero-dev/setup-vp@v1
1318
+ - name: Setup dependencies
1319
+ uses: ./.github/actions/setup-ci-deps
1320
with:
1352
- node-version-file: package.json
1353
- cache: true
1354
- run-install: |
1355
- args:
1356
- - --filter=@t3tools/scripts...
1357
- - --filter=@t3tools/oxlint-plugin-t3code...
1321
+ install-args: --filter=@t3tools/scripts... --filter=@t3tools/oxlint-plugin-t3code...
1322
1323
- id: update_versions
1324
name: Update version strings
@@ -1411,14 +1375,10 @@ jobs:
1375
!/.repos/
1376
sparse-checkout-cone-mode: false
1377
1414
- - name: Setup Vite+
1415
- uses: voidzero-dev/setup-vp@v1
1378
+ - name: Setup dependencies
1379
+ uses: ./.github/actions/setup-ci-deps
1380
with:
1417
- node-version-file: package.json
1418
- cache: true
1419
- run-install: |
1420
- args:
1421
- - --filter=@t3tools/scripts...
1381
+ install-args: --filter=@t3tools/scripts...
1382
1383
- name: Read published release notes
1384
if: needs.preflight.outputs.is_prerelease == 'true'