Nightly release channel (#2012)
Co-authored-by: Cursor Agent <[email protected]> Co-authored-by: cursor[bot] <206951365+cursor[bot]@users.noreply.github.com>
This commit is contained in:
49 files changed
+1221
-149
No files matched your search
+37
-12
@@ -1,23 +1,47 @@
|
||||
# Release Checklist
|
||||
|
||||
This document covers how to run desktop releases from one tag, first without signing, then with signing.
|
||||
This document covers the unified release workflow for stable and nightly desktop releases.
|
||||
|
||||
## What the workflow does
|
||||
|
||||
- Trigger: push tag matching `v*.*.*`.
|
||||
- Workflow: `.github/workflows/release.yml`
|
||||
- Triggers:
|
||||
- push tag matching `v*.*.*` for stable releases
|
||||
- scheduled nightly at `09:00 UTC`
|
||||
- manual `workflow_dispatch` for either channel
|
||||
- Runs quality gates first: lint, typecheck, test.
|
||||
- Builds four artifacts in parallel:
|
||||
- Builds four artifacts in parallel for both channels:
|
||||
- macOS `arm64` DMG
|
||||
- macOS `x64` DMG
|
||||
- Linux `x64` AppImage
|
||||
- Windows `x64` NSIS installer
|
||||
- Publishes one GitHub Release with all produced files.
|
||||
- Versions with a suffix after `X.Y.Z` (for example `1.2.3-alpha.1`) are published as GitHub prereleases.
|
||||
- Only plain `X.Y.Z` releases are marked as the repository's latest release.
|
||||
- Includes Electron auto-update metadata (for example `latest*.yml` and `*.blockmap`) in release assets.
|
||||
- Publishes the CLI package (`apps/server`, npm package `t3`) with OIDC trusted publishing.
|
||||
- Stable tags with a suffix after `X.Y.Z` (for example `1.2.3-alpha.1`) are published as GitHub prereleases.
|
||||
- Only plain stable `X.Y.Z` releases are marked as the repository's latest release.
|
||||
- Nightly runs are always GitHub prereleases and never marked latest.
|
||||
- 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.
|
||||
- Includes Electron auto-update metadata (for example `latest*.yml`, `nightly*.yml`, and `*.blockmap`) in release assets.
|
||||
- Publishes the CLI package (`apps/server`, npm package `t3`) with OIDC trusted publishing from the same workflow file:
|
||||
- stable releases publish npm dist-tag `latest`
|
||||
- nightly releases publish npm dist-tag `nightly`
|
||||
- Signing is optional and auto-detected per platform from secrets.
|
||||
|
||||
## Nightly builds
|
||||
|
||||
- Workflow: `.github/workflows/release.yml`
|
||||
- Triggers:
|
||||
- scheduled every day at `09:00 UTC`
|
||||
- manual `workflow_dispatch` with `channel=nightly`
|
||||
- Runs the same desktop quality gates and artifact matrix as the tagged release flow.
|
||||
- Publishes a GitHub prerelease only:
|
||||
- tag format: `nightly-vX.Y.Z-nightly.YYYYMMDD.<run_number>`
|
||||
- release name includes the short commit SHA
|
||||
- `make_latest` is always `false`
|
||||
- Uses the current `apps/desktop/package.json` semver core (`X.Y.Z`) as the nightly base, then appends a nightly prerelease suffix.
|
||||
- Publishes Electron auto-update metadata to the dedicated `nightly` updater channel, so desktop users can opt into that track independently from stable.
|
||||
- Publishes the CLI package (`apps/server`, npm package `t3`) to the `nightly` npm dist-tag using the same nightly version.
|
||||
- Does not commit version bumps back to `main`.
|
||||
|
||||
## Desktop auto-update notes
|
||||
|
||||
- Runtime updater: `electron-updater` in `apps/desktop/src/main.ts`.
|
||||
@@ -34,15 +58,15 @@ This document covers how to run desktop releases from one tag, first without sig
|
||||
- the app forwards it as an `Authorization: Bearer <token>` request header for updater HTTP calls.
|
||||
- Required release assets for updater:
|
||||
- platform installers (`.exe`, `.dmg`, `.AppImage`, plus macOS `.zip` for Squirrel.Mac update payloads)
|
||||
- `latest*.yml` metadata
|
||||
- channel metadata: `latest*.yml` for stable releases, `nightly*.yml` for nightly releases
|
||||
- `*.blockmap` files (used for differential downloads)
|
||||
- macOS metadata note:
|
||||
- `electron-updater` reads `latest-mac.yml` for both Intel and Apple Silicon.
|
||||
- The workflow merges the per-arch mac manifests into one `latest-mac.yml` before publishing the GitHub Release.
|
||||
- `electron-updater` reads `latest-mac.yml` on stable and `nightly-mac.yml` on nightly, for both Intel and Apple Silicon.
|
||||
- The workflow merges the per-arch mac manifests into one channel-specific mac manifest before publishing the GitHub Release.
|
||||
|
||||
## 0) npm OIDC trusted publishing setup (CLI)
|
||||
|
||||
The workflow publishes the CLI with `bun publish` from `apps/server` after bumping
|
||||
The workflow publishes the CLI with `npm publish` from `apps/server` after bumping
|
||||
the package version to the release tag version.
|
||||
|
||||
Checklist:
|
||||
@@ -57,7 +81,8 @@ Checklist:
|
||||
4. Create release tag `vX.Y.Z` and push; workflow will:
|
||||
- set `apps/server/package.json` version to `X.Y.Z`
|
||||
- build web + server
|
||||
- run `bun publish --access public`
|
||||
- run `npm publish --access public --tag latest`
|
||||
5. Nightly runs from the same workflow file publish with `npm publish --access public --tag nightly`.
|
||||
|
||||
## 1) Dry-run release without signing
|
||||
|
||||
|
||||
Reference in new issue
Block a user