Releases
A release moves one existing build into one channel and records everything that follows. Reach for it when a build is ready for its audience, when you want a version cut, or when a channel needs to go back to the build it held before. A release never rebuilds.
Quick start
POST /api/projects/{id}/releases
{ "buildId": "<short-sha>", "channel": "preview" }The build lands in preview, one release run dispatches per browser, and the channel's event log gains a release event. preview takes any build. stable and every channel you create take only a build made for Stable, so rebuild the commit for Stable before you release it there.
How it works
Releasing a build
The body names buildId, channel, sourceChannel and browsers. buildId is required. Leave channel out and the release lands in preview, which takes any build. stable and every channel you create take only a build made for Stable, so a Preview build, which is what a push to any branch other than the Release branch and every pull request make, answers 409 BUILD_ENV_MISMATCH there. The message carries the fix: "Rebuild this commit for Stable (Builds, Rebuild), then release it." Leave browsers out and the build's own browsers are released, chrome when the build names none. One release run dispatches per browser, correlated by a minted dispatch id.
The console's new release form at /releases/new starts on stable once it has shipped, else on the first channel that has, else on preview. The form shows the selected build's version as a fact. It never takes a typed one, so a build without a manifest version cannot be released from it. The form has no environment picker either: what the build was made for is a fact on the build. When the build was made for Preview and the channel takes Stable, the form pauses and offers Rebuild for Stable · 1 build. It tracks that build and arms Create release when it lands.
Create release sends the release and hands you to the release page the moment the platform answers. A 200 means dispatched, not done. The release page's Rollout section reports each browser's release run as it lands and refreshes on its own while a run is in flight. A refusal stays on the form under The release did not start, with the fix it offers. The release is checked before it runs. Every refusal is in Release gates.
Cutting a version
POST /api/projects/{id}/releases/cut
{ "level": "patch" }level is patch, minor or major, or pass version to name one. Only the project owner can cut. The cut bumps the manifest version in your source repository and opens a release PR.
A cut can be armed. The release PR body carries a checked task line, and an armed cut releases the moment the matching build goes green, so merging the PR ships.
Merging the PR is a push to the Release branch: the branch named under Project settings, Deployment, else the repository's default branch. That push builds for Stable. Price: 1 build. The version is released to the channel once that build passes.
In the console, Bump version at /releases/bump is the same cut. The page shows the current version and offers Patch, Minor and Major, or a Custom version above the current one. Pick the release channel, write the notes that prefill the PR, and press Open release PR. The page lists what happens next: a pull request opens on your source repository, CI builds the per-browser artifacts on it, and merging releases the version to the channel once the build passes. When GitHub answers, the page reads Pull request opened and names the PR that bumps the manifest to that version; merging it releases the version to the channel. The Bump version card on the Releases tab opens the page with a patch, minor or major already picked. A version no build carries yet belongs here, never on the release form.
The event log
Every release appends a release event to the channel's log: who released, which build entered the channel, and which build it replaced. That log is the record a release page reads, and the only thing rollback can act on.
In event and rollback URLs, the release id is the channel name. To read stable's events or roll stable back, use stable as the id. The events route also accepts a per-browser id: edge-preview reads preview, because it strips a leading chrome-, firefox-, edge- or safari- and reads the rest as the channel. Rollback takes the id whole, so give it the channel name alone.
What a release page reports
A release writes the channel pointer when it dispatches, so the pointer says a release was asked for. The status on the release page is read from the release run instead: live, promoting, failed or unconfirmed, one per browser and folded into one verdict. See Channels for the fold.
GET /api/projects/{id}/releases/promotion-runs?ids=... returns the runs behind the verdict, keyed by the dispatch ids you pass. Each one is the run it matched or found: false. Pass since to bound how far back it looks.
The release page shows the verdict in its Rollout section: one chip per browser with that browser's word, the channel's state above them, and a link to the release run when one was read. The page reads the record again on its own while a browser reads promoting, and for the first fifteen minutes while a browser is unconfirmed. An older unconfirmed release stays still.
Rollback
POST /api/projects/{id}/releases/{channel}/rollbackRollback reads the channel's newest release event and releases the build that release replaced. It is a release like any other, and it is owner only. The browser list comes from the channel pointers, one dispatch each, and a channel with no browser pinned rolls chrome back. Only the dispatches GitHub accepts count against the build allowance.
A target resolves from one thing: the newest release event, carrying an earlier build that differs from the one the channel holds now. Three states give no target: the channel's first release, a release of the build the channel already held, and an empty or missing event log. All three answer 409 NO_ROLLBACK_TARGET, and all three hide the control for owners.
A history the platform could not read is a fourth state and a different answer. The API says 503 ROLLBACK_HISTORY_UNREADABLE rather than reporting a channel with no earlier build. The release page shows that state instead of hiding it: a line saying the history could not be read, and a Try again button. While the history loads, the page holds the space.
A member who is not an owner sees the Roll back control disabled, with a note that only workspace owners roll a channel back, whether or not a target exists.
A rollback that dispatches but cannot re-pin the channel record answers 200 with status: "degraded". The builds went out, and the pointer needs another release to agree with them.
Rolling back a channel does not roll back a store. A build already published stays published until a new submission replaces it. Roll the channel back, then submit again from it.
GitHub Releases
Tagging a GitHub Release for each release is per-project opt-in, off by default. The toggle Create a GitHub Release on release sits in Project settings, Release channels.
Reference
Routes
| Route | What it does | Owner only |
|---|---|---|
POST /api/projects/{id}/releases | Release a build into a channel | no |
POST /api/projects/{id}/releases/cut | Bump the manifest version and open a release PR | yes |
GET /api/projects/{id}/releases/{channel}/events | Read the channel's event log | no |
GET /api/projects/{id}/releases/promotion-runs?ids=... | Read the release runs behind a verdict | yes |
POST /api/projects/{id}/releases/{channel}/rollback | Release the build the newest release replaced | yes |
Console pages
| Address | Opens |
|---|---|
/releases/new | The release form. Releases a build that exists and shows its version as a fact |
/releases/bump | The Bump version page. Opens the release PR with a patch, minor, major or custom version |
/releases/<channel> | The release page, with the Rollout section |
Release body
| Field | Required | Default |
|---|---|---|
buildId | yes | |
channel | no | preview |
sourceChannel | no | preview for a release to preview, else the target channel |
browsers | no | The build's browsers, chrome when it names none |
Cut body
| Field | Values |
|---|---|
level | patch, minor or major |
version | One to four dot separated integers from 0 to 65535 |
Events response
| Field | Meaning |
|---|---|
items | The events, newest first |
total, limit, offset, hasMore | Paging |
truncated, maxItems | The log is capped at 500 events |
Rollback answers
| Answer | Meaning |
|---|---|
200 | Dispatched. status: "degraded" when the channel record could not be re-pinned |
409 NO_ROLLBACK_TARGET | No earlier build to return to |
503 ROLLBACK_HISTORY_UNREADABLE | The history could not be read |
404 RELEASE_WORKFLOW_NOT_FOUND | The mirror carries no release workflow |
502 ROLLBACK_DISPATCH_FAILED | Every browser's dispatch failed |
When it fails
- No rollback control on the release page. The channel has no earlier build to return to. The control appears once a second release gives the log something to point back at. Release the build you want by id with
POST /api/projects/{id}/releasesin the meantime. 409 NO_ROLLBACK_TARGET. The same state, seen from the API.503 ROLLBACK_HISTORY_UNREADABLE. The release history did not load, so whether there is an earlier build is unknown. Retry. On the release page this is the Try again button.404 RELEASE_WORKFLOW_NOT_FOUND. A target resolved, and the mirror carries no release workflow. Reconnect the project under Project settings, GitHub integration.502 ROLLBACK_DISPATCH_FAILED. Every browser's dispatch failed and nothing moved. Retry. A run where some browsers dispatched answers200and names the ones that did not.- Rollback or cut refused for a collaborator. Both are owner only. Ask the project owner.
- Create release is disabled with "This build reports no manifest version". The form reads the version from the build and takes no typed one. Pick a build that carries a version. To raise the version first, open
/releases/bump. - Open release PR is disabled with "is not higher than the released". Stores only accept increasing versions. Pick a higher one. A version the manifest already carries answers
VERSION_NOT_AHEADfrom the API for the same reason. - The release page still reads
promoting. The run is in flight. The page refreshes on its own, and View run on the Rollout line opens the run itself. A slow run is a run to watch, not an error. - An empty event log for a channel that holds a release. Check the id. The events route strips a leading browser name, so a channel whose own name starts with
chrome-,firefox-,edge-orsafari-loses that prefix:edge-nightlyreadsnightlyand comes back empty. Any other name is read whole. 409 BUILD_ENV_MISMATCHon a release tostableor to a channel you created. The build was made for Preview, which every push to a branch other than the Release branch and every pull request is, and that channel takes only a build made for Stable. The message says the fix: "Rebuild this commit for Stable (Builds, Rebuild), then release it." The release form offers Rebuild for Stable in place. See Channels and Environments.- Release refused with a code. See Release gates for every code and its fix.
- Armed cut never shipped. It fires only when the matching build goes green. Find the build with
GET /api/projects/{id}/buildsand read its logs. To watch one run,GET /api/projects/{id}/builds/live-status?runId=<runId>returns its status and conclusion, and answers400without a run id.