Open History to see the last commit
1# Release Checklist
2
3This document covers how to run desktop releases from one tag, first without signing, then with signing.
4
5## What the workflow does
6
7- Trigger: push tag matching `v*.*.*`.
8- Runs quality gates first: lint, typecheck, test.
9- Builds four artifacts in parallel:
10 - macOS `arm64` DMG
11 - macOS `x64` DMG
12 - Linux `x64` AppImage
13 - Windows `x64` NSIS installer
14- Publishes one GitHub Release with all produced files.
15 - Versions with a suffix after `X.Y.Z` (for example `1.2.3-alpha.1`) are published as GitHub prereleases.
16 - Only plain `X.Y.Z` releases are marked as the repository's latest release.
17- Includes Electron auto-update metadata (for example `latest*.yml` and `*.blockmap`) in release assets.
18- Publishes the CLI package (`apps/server`, npm package `t3`) with OIDC trusted publishing.
19- Signing is optional and auto-detected per platform from secrets.
20
21## Desktop auto-update notes
22
23- Runtime updater: `electron-updater` in `apps/desktop/src/main.ts`.
24- Update UX:
25 - Background checks run on startup delay + interval.
26 - No automatic download or install.
27 - The desktop UI shows a rocket update button when an update is available; click once to download, click again after download to restart/install.
28- Provider: GitHub Releases (`provider: github`) configured at build time.
29- Repository slug source:
30 - `T3CODE_DESKTOP_UPDATE_REPOSITORY` (format `owner/repo`), if set.
31 - otherwise `GITHUB_REPOSITORY` from GitHub Actions.
32- Temporary private-repo auth workaround:
33 - set `T3CODE_DESKTOP_UPDATE_GITHUB_TOKEN` (or `GH_TOKEN`) in the desktop app runtime environment.
34 - the app forwards it as an `Authorization: Bearer <token>` request header for updater HTTP calls.
35- Required release assets for updater:
36 - platform installers (`.exe`, `.dmg`, `.AppImage`, plus macOS `.zip` for Squirrel.Mac update payloads)
37 - `latest*.yml` metadata
38 - `*.blockmap` files (used for differential downloads)
39
40## 0) npm OIDC trusted publishing setup (CLI)
41
42The workflow publishes the CLI with `bun publish` from `apps/server` after bumping
43the package version to the release tag version.
44
45Checklist:
46
471. Confirm npm org/user owns package `t3` (or rename package first if needed).
482. In npm package settings, configure Trusted Publisher:
49 - Provider: GitHub Actions
50 - Repository: this repo
51 - Workflow file: `.github/workflows/release.yml`
52 - Environment (if used): match your npm trusted publishing config
533. Ensure npm account and org policies allow trusted publishing for the package.
544. Create release tag `vX.Y.Z` and push; workflow will:
55 - set `apps/server/package.json` version to `X.Y.Z`
56 - build web + server
57 - run `bun publish --access public`
58
59## 1) Dry-run release without signing
60
61Use this first to validate the release pipeline.
62
631. Confirm no signing secrets are required for this test.
642. Create a test tag:
65 - `git tag v0.0.0-test.1`
66 - `git push origin v0.0.0-test.1`
673. Wait for `.github/workflows/release.yml` to finish.
684. Verify the GitHub Release contains all platform artifacts.
695. Download each artifact and sanity-check installation on each OS.
70
71## 2) Apple signing + notarization setup (macOS)
72
73Required secrets used by the workflow:
74
75- `CSC_LINK`
76- `CSC_KEY_PASSWORD`
77- `APPLE_API_KEY`
78- `APPLE_API_KEY_ID`
79- `APPLE_API_ISSUER`
80
81Checklist:
82
831. Apple Developer account access:
84 - Team has rights to create Developer ID certificates.
852. Create `Developer ID Application` certificate.
863. Export certificate + private key as `.p12` from Keychain.
874. Base64-encode the `.p12` and store as `CSC_LINK`.
885. Store the `.p12` export password as `CSC_KEY_PASSWORD`.
896. In App Store Connect, create an API key (Team key).
907. Add API key values:
91 - `APPLE_API_KEY`: contents of the downloaded `.p8`
92 - `APPLE_API_KEY_ID`: Key ID
93 - `APPLE_API_ISSUER`: Issuer ID
948. Re-run a tag release and confirm macOS artifacts are signed/notarized.
95
96Notes:
97
98- `APPLE_API_KEY` is stored as raw key text in secrets.
99- The workflow writes it to a temporary `AuthKey_<id>.p8` file at runtime.
100
101## 3) Azure Trusted Signing setup (Windows)
102
103Required secrets used by the workflow:
104
105- `AZURE_TENANT_ID`
106- `AZURE_CLIENT_ID`
107- `AZURE_CLIENT_SECRET`
108- `AZURE_TRUSTED_SIGNING_ENDPOINT`
109- `AZURE_TRUSTED_SIGNING_ACCOUNT_NAME`
110- `AZURE_TRUSTED_SIGNING_CERTIFICATE_PROFILE_NAME`
111- `AZURE_TRUSTED_SIGNING_PUBLISHER_NAME`
112
113Checklist:
114
1151. Create Azure Trusted Signing account and certificate profile.
1162. Record ATS values:
117 - Endpoint
118 - Account name
119 - Certificate profile name
120 - Publisher name
1213. Create/choose an Entra app registration (service principal).
1224. Grant service principal permissions required by Trusted Signing.
1235. Create a client secret for the service principal.
1246. Add Azure secrets listed above in GitHub Actions secrets.
1257. Re-run a tag release and confirm Windows installer is signed.
126
127## 4) Ongoing release checklist
128
1291. Ensure `main` is green in CI.
1302. Bump app version as needed.
1313. Create release tag: `vX.Y.Z`.
1324. Push tag.
1335. Verify workflow steps:
134 - preflight passes
135 - all matrix builds pass
136 - release job uploads expected files
1376. Smoke test downloaded artifacts.
138
139## 5) Troubleshooting
140
141- macOS build unsigned when expected signed:
142 - Check all Apple secrets are populated and non-empty.
143- Windows build unsigned when expected signed:
144 - Check all Azure ATS and auth secrets are populated and non-empty.
145- Build fails with signing error:
146 - Retry with secrets removed to confirm unsigned path still works.
147 - Re-check certificate/profile names and tenant/client credentials.