Open History to see the last commit
1# Release Checklist
2
3> For maintainers. Using T3 Code? See [docs/user](../user/).
4
5This document covers the unified release workflow for stable and nightly desktop releases.
6
7## What the workflow does
8
9- Workflow: `.github/workflows/release.yml`
10- Triggers:
11 - manual `workflow_dispatch` with `channel=stable`, the normal way to ship stable
12 - push tag matching `v*.*.*` for a stable release of an explicit commit
13 - scheduled nightly check every 30 minutes
14 - manual `workflow_dispatch` with `channel=nightly`
15 - manual `workflow_dispatch` with `channel=preview`, the maintainers' test train. It exercises the whole release flow (build, sign, notarize, smoke, publish) for a commit that end users must never receive, which is how an unmerged branch or a risky change gets a real release run before it lands. It builds the triggering commit with nightly's versioning under the `preview` prerelease identifier (`0.0.41-preview.<date>.<run>`) and publishes a GitHub prerelease plus the npm packages under the `preview` dist-tag. Nothing ever selects preview on its own: it is not on the schedule, no default npm dist-tag points at it, its desktop builds carry no update feed, and no updater manifest (`latest*.yml`, `nightly*.yml`, blockmaps) is attached, so a stable or nightly install cannot be offered one. The only ways onto it are downloading the release by hand, `npx t3@preview`, `T3CODE_CHANNEL=preview` for the install scripts, or `t3 update --channel preview` from a terminal; each prints a warning, and the CLI asks for confirmation when the running build is not itself a preview. The release itself is named as a maintainer test build and its body is a warning rather than generated notes: a changelog of unmerged branch history is not a changelog, and nightly and stable notes are unaffected because each series resolves its previous tag within its own channel. The hosted web app, AUR, and Discord announcements are skipped. Keep it; it costs nothing when idle.
16- A manual stable release builds the commit of the latest published nightly, not `main` HEAD.
17 Nightly is the release candidate: verify the nightly, then promote it. Merges to `main` keep
18 landing while you verify and never leak into the stable build.
19 - The version defaults to the one the nightly previewed (`0.0.39-nightly.*` ships as `0.0.39`).
20 Pass the `version` input to override it, for example for a minor bump.
21 - The stable tag is created on the nightly's commit when the GitHub Release is published.
22 - Pushing a `vX.Y.Z` tag by hand still works and builds exactly the tagged commit. Use it when
23 the commit to ship is not the latest nightly, such as a cherry-picked fix on a release branch.
24- Runs lint, typecheck, and tests alongside artifact builds. Publishing waits for every check.
25- Reads the shared production T3 Connect relay URL and Clerk client configuration before packaging clients.
26- Builds the platform-independent JS (server bundle, web client, Electron main) once in the `build_bundle` job and hands it to every platform job as the `js-bundle` artifact; the platform jobs only package it, so no runner rebuilds it.
27- Builds six desktop artifacts in parallel for both channels, each as its own job (`desktop_<platform>_<arch>`, one call of `release-desktop.yml`) on hardware of its own architecture, gated only on the bundle (the Windows jobs also wait for the same-arch Linux job, whose CLI archive they embed as the WSL runtime):
28 - macOS `arm64` DMG
29 - macOS `x64` DMG
30 - Linux `x64` and `arm64` AppImage
31 - Windows `x64` and `arm64` NSIS installer
32- Publishes one GitHub Release with all produced files.
33 - Stable tags with a suffix after `X.Y.Z` (for example `1.2.3-alpha.1`) are published as GitHub prereleases.
34 - Only plain stable `X.Y.Z` releases are marked as the repository's latest release.
35 - Nightly runs are always GitHub prereleases and never marked latest.
36 - Automatically generated release notes are pinned to the previous tag in the same channel, so stable compares to the previous stable tag and nightly compares to the previous nightly tag.
37- Includes Electron auto-update metadata (for example `latest*.yml`, `nightly*.yml`, and `*.blockmap`) in release assets.
38- Builds a self-contained CLI archive per platform (`t3-<version>-<platform>-<arch>.tar.gz`, `.zip` on Windows) in the same job as that target's desktop artifact and attaches them to the GitHub Release with a `SHA256SUMS` file, on every channel, for five targets: macOS arm64, Linux x64 and arm64, Windows x64 and arm64. Every archive is built, signed, and smoke-tested on hardware of its own architecture. There is no macOS x64 archive: Node single-executables are unsupported on x64 macOS (the SEA docs list macOS as arm64 only) and the binary segfaults on start; the x64 desktop app is Electron and unaffected.
39 - The archive holds the server as a Node single-executable (`scripts/build-cli-archive.ts`), so unpacking it needs neither Node, npm, nor a compiler. It is the only form in which T3 Code manages a runtime: the desktop's SSH environments, the boot service, `t3 update`, and the install scripts all download and verify this archive against `SHA256SUMS`. The npm packages exist for people who run `npx t3` or `npm install -g t3` themselves and carry the same archive contents; nothing in the product installs from npm. The `curl | sh` installers are `scripts/install.sh` and `scripts/install.ps1`; the marketing site copies them into its `public/` at build time (`apps/marketing/scripts/stage-install-scripts.mjs`) and serves them at `t3.codes/install.sh` and `/install.ps1`.
40 - The executable is built with a Node that supports `--build-sea` (`VP_NODE_VERSION=26.8.2`, kept in step with `SEA_NODE_VERSION` in `apps/server/vite.config.ts`), while the repo stays on `engines.node`.
41 - macOS archives are signed with the Developer ID certificate and notarized when the Apple secrets are present (ad hoc otherwise, which still runs from `curl`/`tar` installs). Windows executables use the same Azure Trusted Signing setup as the installer. Every native addon in the macOS archive is signed too, since the hardened runtime refuses unsigned libraries.
42 - Each archive is extracted and executed on its build runner (`scripts/smoke-cli-archive.ts`) before it is uploaded.
43- Publishes the CLI to npm with OIDC trusted publishing from the same workflow file, as the same bytes the GitHub Release carries: `scripts/build-npm-platform-packages.ts` unpacks the five CLI archives into `@t3code/t3-<platform>-<arch>` packages (each with `os`/`cpu` set so npm installs only the matching one) and generates the `t3` launcher, whose `bin/t3.js` lists them as `optionalDependencies` and execs the installed executable. `npx t3` therefore needs Node only to run the launcher, never to run the server. `node apps/server/scripts/cli.ts publish` publishes the platform packages first and the launcher last, after a `--dry-run` pass over all of them so an auth or scope error fails before anything is live.
44 - stable releases publish npm dist-tag `latest`
45 - nightly releases publish npm dist-tag `nightly`
46 - preview releases publish npm dist-tag `preview`, which nothing resolves unless asked for by name
47 - one-time setup: the `@t3code` npm scope (org) must exist, and `t3` and each `@t3code/t3-<platform>-<arch>` package needs a trusted publisher registered for this workflow file (see below).
48- Deploys the hosted web app to Vercel only after a release is published:
49 - stable releases are aliased to the `latest` hosted app channel
50 - nightly releases are aliased to the `nightly` hosted app channel
51- Signing is optional and auto-detected per platform from secrets.
52
53## Required release credentials
54
55Stable releases require these GitHub Actions secrets in addition to the platform and deployment
56credentials documented below:
57
58- `RELEASE_APP_ID`
59- `RELEASE_APP_PRIVATE_KEY`
60
61The finalize job uses them to commit and push aligned package versions to `main` as the Release App.
62GitHub Release publication uses the repository-scoped workflow token so it has a rate-limit quota
63independent from the shared Release App installation.
64
65## T3 Connect relay deployment
66
67The relay is a shared control plane versioned separately from client releases. Stable and nightly
68client builds must point at the same relay so users see the same linked environments when switching
69release channels.
70
71`.github/workflows/deploy-relay.yml` deploys Alchemy stage `prod` on every push to `main`. The
72release workflow reads the relay URL and Clerk client configuration from the existing `production`
73GitHub Actions environment before building desktop, CLI, or hosted web artifacts.
74
75Required repository variables shared by relay deployments:
76
77- `CLOUDFLARE_ACCOUNT_ID`
78- `PLANETSCALE_ORGANIZATION`
79- `AXIOM_ORG_ID`
80
81Required repository secrets shared by relay deployments:
82
83- `CLOUDFLARE_API_TOKEN`
84- `PLANETSCALE_API_TOKEN_ID`
85- `PLANETSCALE_API_TOKEN`
86- `AXIOM_TOKEN`
87
88Required `production` environment variables:
89
90- `RELAY_API_ZONE_NAME`
91- `RELAY_TUNNEL_ZONE_NAME`
92- `CLERK_PUBLISHABLE_KEY`
93- `CLERK_JWT_AUDIENCE`
94- `CLERK_JWT_TEMPLATE`
95- `CLERK_CLI_OAUTH_CLIENT_ID`
96- `APNS_ENVIRONMENT`
97- `APNS_TEAM_ID`
98- `APNS_KEY_ID`
99- `APNS_BUNDLE_ID`
100
101Optional `production` environment variables:
102
103- `RELAY_DOMAIN` when overriding the derived `relay.<RELAY_API_ZONE_NAME>` domain
104
105Required `production` environment secrets:
106
107- `CLERK_SECRET_KEY`
108- `APNS_PRIVATE_KEY`
109
110The account-scoped repository credentials are consumed by Alchemy while provisioning relay stages; they
111are not bound into the relay Worker. The production deployment uses an Axiom personal access token,
112so `AXIOM_ORG_ID` must accompany `AXIOM_TOKEN`. The `prod` stage owns the retained PlanetScale
113database. Local personal stages provision isolated branches from it and are never deployed by CI.
114Production adopts the configured relay API and tunnel DNS zones as retained Cloudflare resources.
115Personal stages reference the production-owned zones.
116
117Developers deploy personal stages locally rather than through pull-request automation:
118
119```sh
120vp run --filter t3code-relay deploy -- --stage "$USER" --env-file .env.local
121```
122
123## Marketing site deployment
124
125After a nightly release is published, the release workflow deploys the same commit
126to the marketing site's Vercel production project. Stable releases do not deploy
127the marketing site because they can promote an older nightly commit.
128
129The job looks up the `t3code-marketing` project using the existing `VERCEL_TOKEN`
130and `VERCEL_ORG_ID` secrets. It also respects the optional `VERCEL_TEAM_SLUG`
131variable. The Vercel project's root directory must be `apps/marketing`.
132Git deployments remain disabled in `apps/marketing/vercel.ts`.
133
134## Hosted web app release deployment
135
136The hosted app is intentionally not deployed by Vercel's Git integration. The
137web project disables automatic Git deployments in `apps/web/vercel.ts` via
138`git.deploymentEnabled: false`, and `.github/workflows/release.yml` deploys the
139web app with Vercel CLI after the GitHub Release succeeds.
140
141Required GitHub Actions secrets:
142
143- `VERCEL_TOKEN`
144- `VERCEL_ORG_ID`
145- `VERCEL_PROJECT_ID`
146
147Optional GitHub Actions variables:
148
149- `VERCEL_TEAM_SLUG`: overrides the Vercel CLI scope when the team slug is preferred over the `VERCEL_ORG_ID` secret.
150- `T3CODE_WEB_ROUTER_URL`: defaults to `https://app.t3.codes`.
151- `T3CODE_WEB_LATEST_DOMAIN`: defaults to `latest.app.t3.codes`.
152- `T3CODE_WEB_NIGHTLY_DOMAIN`: defaults to `nightly.app.t3.codes`.
153
154Required Vercel domains:
155
156- `app.t3.codes`: the router domain users open, updated by stable releases.
157- `latest.app.t3.codes`: channel alias updated by stable releases.
158- `nightly.app.t3.codes`: channel alias updated by nightly releases.
159
160The router domain uses `apps/web/vercel.ts` routes. Users opt into a channel by
161visiting `/__t3code/channel?channel=latest` or
162`/__t3code/channel?channel=nightly`; the router stores the
163`t3code_web_channel` cookie and rewrites future requests on `app.t3.codes` to
164the matching channel alias.
165
166The release deploy job rewrites release package versions before upload so the
167hosted app's About panel renders the release version. Stable deploys alias the
168same deployment to both the `latest` channel and the router domain so the router
169rules stay current. Nightly deploys only alias the `nightly` channel. The job
170also passes `VITE_HOSTED_APP_CHANNEL=latest|nightly`, which renders the hosted
171update track selector in the About panel. Changing the selector navigates
172through `/__t3code/channel` on the router domain so the user's channel cookie is
173updated before redirecting to the hosted app root.
174
175One-time Vercel dashboard setup:
176
1771. Confirm the web project root directory remains `apps/web`.
1782. Add the three domains above to the web project.
1793. Disable automatic Git deployments in the dashboard if desired; the committed
180 `vercel.ts` setting is the source-of-truth, but disconnecting Git in the
181 dashboard is also safe.
1824. Run one stable release deployment, or manually alias the current stable
183 deployment, so `app.t3.codes` points at a deployment containing the router
184 rules in `apps/web/vercel.ts`. Future stable releases keep this alias current.
185
186## Nightly builds
187
188- Workflow: `.github/workflows/release.yml`
189- Triggers:
190 - scheduled check every 30 minutes
191 - manual `workflow_dispatch` with `channel=nightly`
192- Automatic nightlies require new commits and at least six hours since the last nightly was published, including manual nightlies.
193- Manual nightlies bypass the time and change checks. Nightly runs remain serialized. Scheduled runs wait for an active nightly to finish, then check the publication gap before building.
194- Runs the same desktop quality gates and artifact matrix as the tagged release flow.
195- Publishes a GitHub prerelease only:
196 - current tag format: `vX.Y.Z-nightly.YYYYMMDD.<run_number>`
197 - `nightly-v...` is accepted only as a legacy previous-nightly tag
198 - release name includes the short commit SHA
199 - `make_latest` is always `false`
200- Uses the next stable patch version as the nightly base. For example, `0.0.17` produces nightlies on `0.0.18-nightly.*`.
201- Publishes Electron auto-update metadata to the dedicated `nightly` updater channel, so desktop users can opt into that track independently from stable.
202- Publishes the CLI npm packages (`t3` and `@t3code/t3-<platform>-<arch>`) to the `nightly` npm dist-tag using the same nightly version.
203- Does not commit version bumps back to `main`.
204
205## Server self-update release invariant
206
207Connected servers update to the client's exact version, not to an npm dist-tag. Every released
208desktop or hosted client version must therefore have a matching `t3@<version>` package available on
209npm before users can receive that client.
210
211The workflow enforces this ordering:
212
2131. `publish_cli` publishes the exact release version to npm, on every channel.
2142. `release` depends on `publish_cli` before exposing desktop artifacts in GitHub Releases.
2153. `deploy_web` depends on `release` before moving the hosted channel to the new client.
216
217Preserve these dependencies when changing the release graph. Publishing a client first would leave
218the **Update server** action targeting a package version that does not exist yet.
219
220For a release smoke test, confirm `npm view t3@<version> version` returns the expected version, then
221connect the new client to a server on the previous version and verify that the update action
222reconnects to the matching server. When the release adds database migrations, verify that the
223remote update applies them and reconnects. A failed trial must restore the database snapshot and
224restart the previous server. If the installed launcher does not support the target protocol,
225verify that the update stops before restart and run `npx t3@<version> service update` once on the
226server machine. Also test the manual or desktop-managed guidance when those environments are
227available.
228
229## Desktop auto-update notes
230
231- Updater runtime: `apps/desktop/src/updates/DesktopUpdates.ts`.
232- `electron-updater` adapter: `apps/desktop/src/electron/ElectronUpdater.ts`.
233- `apps/desktop/src/main.ts` only wires the updater layers into the desktop runtime.
234- Update UX:
235 - Background checks run on startup delay + interval.
236 - No automatic download or install.
237 - The desktop UI shows a rocket update button when an update is available; click once to download, click again after download to restart/install.
238- Provider: GitHub Releases (`provider: github`) configured at build time.
239- Repository slug source:
240 - `T3CODE_DESKTOP_UPDATE_REPOSITORY` (format `owner/repo`), if set.
241 - otherwise `GITHUB_REPOSITORY` from GitHub Actions.
242- Required release assets for updater:
243 - platform installers (`.exe`, `.dmg`, `.AppImage`, plus macOS `.zip` for Squirrel.Mac update payloads)
244 - channel metadata: `latest*.yml` for stable releases, `nightly*.yml` for nightly releases
245 - `*.blockmap` files (used for differential downloads)
246- macOS metadata note:
247 - `electron-updater` reads `latest-mac.yml` on stable and `nightly-mac.yml` on nightly, for both Intel and Apple Silicon.
248 - The workflow merges the per-arch mac manifests into one channel-specific mac manifest before publishing the GitHub Release.
249
250### Windows payload topology and update validation
251
252Windows packages the bundled server and only its runtime-external/native
253dependency closure in `resources/server.asar`. Native modules and helper
254executables declared as unpacked by that archive must be present at the matching
255paths below `resources/server.asar.unpacked`. The Windows-native backend reads
256the archive in place through Electron. Packaged Windows builds also ship
257`resources/wsl-runtime.tar.gz` plus its SHA-256 sidecar: the Linux CLI archive
258(`t3-<version>-linux-<arch>.tar.gz`, the same arch as the Windows host) built
259by the Linux desktop job and handed to the Windows desktop build as
260`--wsl-runtime`, copied in verbatim so WSL runs the exact bytes a Linux user
261downloads. WSL verifies and extracts that archive
262into `~/.t3/wsl-runtime/sha256-<archive-digest>` inside the selected distro,
263then reuses it for later launches of the same update.
264
265Windows keeps JavaScript and package metadata inside `app.asar` and unpacks only
266native libraries and helper executables. Avoid enabling whole-package smart
267unpacking: each loose file adds work to NSIS installation and counts against
268the payload limit.
269
270The artifact builder rejects a Windows package when any of these invariants
271break:
272
273- `resources/server.asar` is absent or does not contain the server entry.
274- Any file marked unpacked in the ASAR header is absent from
275 `resources/server.asar.unpacked`.
276- On same-architecture Windows builds, the packaged primary cannot load the fff
277 native library from inside `server.asar` through its `.unpacked` sibling.
278- The isolated, extracted sidecar cannot load the server entry with plain Node.
279- A Windows build given `--wsl-runtime` omits the WSL archive or SHA-256
280 sidecar, or the sidecar digest does not match the emitted archive.
281- The emitted WSL archive is not a Linux CLI release archive: it must unpack to
282 a single `t3-<version>-linux-<arch>` directory holding `t3`, `client/`, and
283 `node_modules/` with the Linux node-pty binary, and must not carry a loose
284 server bundle (`bin.mjs`).
285- The external Windows resource monitor is absent.
286- The unpacked Windows application contains more than 80 files.
287
288Cross-architecture Windows builds retain every structural and extracted-sidecar
289check, but skip executing the target Electron binary. A same-architecture build
290for each release target must exercise the primary native-load probe.
291
292NSIS differential packaging remains enabled. A sidecar layout transition can
293produce a larger one-time download; subsequent small releases retain their
294blockmaps, with a 60 MB maximum for a representative sidecar-to-sidecar update.
295
296## 0) npm OIDC trusted publishing setup (CLI)
297
298The workflow runs `node scripts/build-npm-platform-packages.ts` on the downloaded CLI archives, then
299`node apps/server/scripts/cli.ts publish --packages-dir npm-packages`, which runs `npm publish` on
300each `@t3code/t3-<platform>-<arch>.tgz` and finally on `t3.tgz`, the launcher. The script publishes
301tarballs it built itself rather than directories: `npm publish <dir>` strips `node_modules/` from the
302tarball no matter what `files` says, and the executable loads its native addons from there. Seven
303packages are published per release: `t3`, `@t3code/t3-darwin-arm64`, `@t3code/t3-darwin-x64`,
304`@t3code/t3-linux-arm64`, `@t3code/t3-linux-x64`, `@t3code/t3-win32-arm64`,
305`@t3code/t3-win32-x64`.
306
307Checklist:
308
3091. Confirm the npm org owns package `t3` and the `@t3code` scope exists on npm (create the org if
310 it does not).
3112. For `t3` and each `@t3code/t3-<platform>-<arch>` package, configure a Trusted Publisher in the
312 npm package settings (a package that has never been published needs a first publish or a
313 placeholder before the setting exists; the `--dry-run` step in `publish_cli` reports which
314 names are still rejected):
315 - Provider: GitHub Actions
316 - Repository: this repo
317 - Workflow file: `.github/workflows/release.yml`
318 - Environment (if used): match your npm trusted publishing config
3193. Ensure npm account and org policies allow trusted publishing for every package.
3204. Create release tag `vX.Y.Z` and push; workflow will:
321 - build and smoke-test the five CLI archives
322 - build the npm packages from those archives
323 - publish them with npm dist-tag `latest`
3245. Nightly runs publish with npm dist-tag `nightly`; preview runs with `preview`.
325
326## 1) Release validation and unsigned builds
327
328There is no dry-run tag path. Pushing any accepted non-nightly tag, including
329`v0.0.0-test.1`, classifies the run as the stable channel. It publishes `t3` with npm dist-tag
330`latest`, creates a real GitHub Release, aliases the hosted app to `latest.app.t3.codes` and
331`app.t3.codes`, and can commit a version bump to `main` in the finalize job. Do not push a test tag
332to validate the workflow.
333
334The workflow has no non-publishing `workflow_dispatch` mode. Use normal CI or local quality gates to
335validate checks and builds without shipping. To exercise the complete release graph at lower stable
336risk, manually dispatch `channel=nightly`; this still publishes a real nightly npm package, GitHub
337prerelease, desktop updater release, hosted nightly alias, and marketing site, but it does not update stable app aliases or
338commit a version bump to `main`. Only run it when a real nightly release is acceptable.
339
340Manual `channel=stable` is also a real stable-channel release. Omitting signing secrets only makes
341platform artifacts unsigned; it does not prevent publication.
342
343## 2) Apple signing + notarization setup (macOS)
344
345Required secrets used by the workflow:
346
347- `CSC_LINK`
348- `CSC_KEY_PASSWORD`
349- `APPLE_API_KEY`
350- `APPLE_API_KEY_ID`
351- `APPLE_API_ISSUER`
352- `MACOS_PROVISIONING_PROFILE` (base64-encoded provisioning profile with Associated Domains)
353
354Required repository variables:
355
356- `APPLE_TEAM_ID`
357
358Optional repository variables:
359
360- `CLERK_PASSKEY_RP_DOMAINS`: comma-separated RP-domain override. By default, the build derives the
361 domain from the production Clerk publishable key.
362
363Checklist:
364
3651. Apple Developer account access:
366 - Team has rights to create Developer ID certificates.
3672. Create an explicit App ID for `com.t3tools.t3code` and enable Associated Domains.
3683. Create a `Developer ID Application` certificate and a compatible provisioning profile for that
369 App ID with Associated Domains enabled.
3704. Export the certificate + private key as `.p12` from Keychain.
3715. Base64-encode the `.p12` and store as `CSC_LINK`.
3726. Base64-encode the provisioning profile and store it as `MACOS_PROVISIONING_PROFILE`.
3737. Store the `.p12` export password as `CSC_KEY_PASSWORD`, and set `APPLE_TEAM_ID` to the
374 10-character Apple Developer Team ID.
3758. In App Store Connect, create an API key (Team key).
3769. Add API key values:
377 - `APPLE_API_KEY`: contents of the downloaded `.p8`
378 - `APPLE_API_KEY_ID`: Key ID
379 - `APPLE_API_ISSUER`: Issuer ID
38010. Complete the Clerk Native API and AASA setup in [T3 Connect setup](./connect-setup.md#desktop-passkeys).
38111. Re-run a tag release and confirm macOS artifacts are signed/notarized and contain the expected
382 `com.apple.developer.associated-domains` entitlement.
383
384Notes:
385
386- `APPLE_API_KEY` is stored as raw key text in secrets.
387- The workflow writes it to a temporary `AuthKey_<id>.p8` file at runtime.
388- The workflow decodes `MACOS_PROVISIONING_PROFILE`, validates it with `security cms`, and passes it
389 to the desktop packager.
390
391## 3) Azure Trusted Signing setup (Windows)
392
393Required secrets used by the workflow:
394
395- `AZURE_TENANT_ID`
396- `AZURE_CLIENT_ID`
397- `AZURE_CLIENT_SECRET`
398- `AZURE_TRUSTED_SIGNING_ENDPOINT`
399- `AZURE_TRUSTED_SIGNING_ACCOUNT_NAME`
400- `AZURE_TRUSTED_SIGNING_CERTIFICATE_PROFILE_NAME`
401- `AZURE_TRUSTED_SIGNING_PUBLISHER_NAME`
402
403Checklist:
404
4051. Create Azure Trusted Signing account and certificate profile.
4062. Record ATS values:
407 - Endpoint
408 - Account name
409 - Certificate profile name
410 - Publisher name
4113. Create/choose an Entra app registration (service principal).
4124. Grant service principal permissions required by Trusted Signing.
4135. Create a client secret for the service principal.
4146. Add Azure secrets listed above in GitHub Actions secrets.
4157. Re-run a tag release and confirm Windows installer is signed.
416
417## 4) Ongoing release checklist
418
4191. Pick the latest nightly and verify it: run the smoke test above against its artifacts and
420 check the nightly channel for regressions.
4212. Dispatch the Release workflow with `channel=stable`. Leave `version` empty unless the version
422 should differ from the one the nightly previewed.
4233. Confirm the `Resolve release commit` notice names the nightly tag and commit you verified. If a
424 newer nightly published in between, the run builds that one instead.
4254. Verify workflow steps:
426 - preflight passes
427 - release quality checks pass
428 - `build_bundle` and all platform builds pass
429 - `publish_cli` publishes the exact release version before the release job
430 - release job uploads expected files
4315. Smoke test downloaded artifacts.
432
433## 5) Troubleshooting
434
435- macOS build unsigned when expected signed:
436 - Check all Apple secrets plus `APPLE_TEAM_ID` are populated and non-empty.
437 - Confirm the provisioning profile belongs to `APPLE_TEAM_ID.com.t3tools.t3code` and includes
438 Associated Domains.
439- Windows build unsigned when expected signed:
440 - Check all Azure ATS and auth secrets are populated and non-empty.
441- Build fails with signing error:
442 - Retry with secrets removed to confirm unsigned path still works.
443 - Re-check certificate/profile names and tenant/client credentials.