Repository navigation
Name the build on the settings Version card - #88
Merged
Merged
Conversation
A deployment that follows main runs commits no release holds, and the card showed only the version with "Up to date". It now reads "0.43.2 (Nov 24, 2026 · 432b90a)": the date and short hash of the deployed commit. When that commit is past the latest release tag, the card says "Unreleased build" with the commit count, from GitHub's compare endpoint. A fork's commit or a rate-limited call falls back to the version comparison. The commit comes from WORKERS_CI_COMMIT_SHA. Workers Builds ignores wrangler custom builds and the documented setup has no build command, so a postinstall script records it: the dependency install is the one step every fork runs. Outside Workers Builds the script does nothing and the card shows the version alone. Also fixes the release tag parse. Releases are tagged app-v<version>, and only a leading v was stripped: an available update showed as "app-v0.44.0", and a 1.x release would never have counted as newer because its major number parsed as NaN.
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
shrtnr | 913a628 | Nov 24 2026, 02:31 PM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A deployment that follows
mainruns commits no release holds, and the Version card could not say so.What changes
0.43.2 (Nov 24, 2026 · 432b90a): the version, then the date and short hash of the deployed commit.app-v<version>and only a leadingvwas stripped. An available update showed as "app-v0.44.0", and a 1.x release would never have counted as newer.Where the commit comes from
Workers Builds sets
WORKERS_CI_COMMIT_SHA, ignores wrangler custom builds, and the documented setup has an empty build command. The dependency install is the one step every fork runs, so apostinstallscript (scripts/generate-build-info.mjs, plain Node, never fails the install) writes the commit intosrc/build-info.generated.ts. Outside Workers Builds it does nothing: the committed module names no build and the card shows the version alone.Verification
yarn tsc --noEmit,-p e2eyarn testyarn e2eThe build line and the unreleased state were also rendered in Chromium against a generated build module. The Workers Builds branch build for this PR ran the hook on a cached install and logged
Recorded build 913a628 (2026-11-24T14:29:51.000Z), the commit's own hash and date.No version bump: releasing is left to the release step. No API or spec change.