Skip to content

chore: release 5.12.1 - #318

Merged
riglar merged 5 commits into
productionfrom
hotfix/cli-5.12.1
Nov 13, 2026
Merged

riglar merged 5 commits into
productionfrom
hotfix/cli-5.12.1

Conversation

@riglar

@riglar riglar commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Releases 5.12.1 to npm latest: a patch from production with only the dev-api fix, not the rest of dev.

5.12.1 (2026-11-13)

Bug Fixes

  • treat dev-api.devicecloud.dev as the dev environment (#314) (d65131f)

Dependencies

  • raise the hono override to 4.13.16 for new moderate advisories (bcbcc2f)

Built by hand from production, with these commits cherry-picked from dev (-x):

Then chore: release 5.12.1 from stable-release.mjs apply, which verify passes.

  • Merge with Create a merge commit. Merging is the release: the Release workflow tags v5.12.1, creates the GitHub Release, publishes npm latest and the binaries, and opens the back-merge PR into dev. No release-please PR follows.
  • The rest of dev stays for 5.13.0. chore: release 5.13.0 #315 will need rebuilding after this merges.

Checked locally: audit at moderate, lint, typecheck, build, unit tests (542 passing).

🤖 Generated with Claude Code

finalerock44 and others added 5 commits November 13, 2026 11:17
… -> prod flow (#305)

* ci: cut a stable release with one workflow run and one PR

A stable release used to take a hand-built promotion branch (dev, a merge
of production, and an empty Release-As pin commit), a promotion PR, then
release-please's own Release PR, then the back-merge PR.

A new "Promote to stable" workflow (promote.yml) now builds the release
branch: dev, with production merged in, plus one commit that sets the
version in package.json and server.json and adds the CHANGELOG.md
section. It opens that as the only PR into production. Merging it is the
release: the Release workflow tags the untagged version, creates the
GitHub Release from the changelog section, and publishes npm, the
binaries and the back-merge as before.

scripts/stable-release.mjs derives the version from the Conventional
Commit PR titles since the last release, as release-please did, but
never derives a major: a breaking marker stops the run until the version
is given explicitly. Its changelog lists each PR once, using the full
title when GitHub cut it short, where release-please listed such PRs
twice.

Production is merged in on every run because dev only allows squash
merges, so the back-merge can never make production an ancestor of dev.

release-please, its config and manifest, and the Release-As
promotion-pin check are removed. A release-check job verifies every PR
into production instead. Release PRs skip claude-review, like back-merge
PRs, because the review action rejects bot actors. The Release workflow
keeps the release-please.yml filename, because npm's trusted publisher
is registered against it.

* ci: keep the stable release PR open and current on every push to dev

Promote to stable now also runs on every push to dev. It rebuilds one
fixed branch, promote/cli-next, and opens the release PR into production
or updates the open one, so the PR always carries all of dev with the
version and changelog to match. Nothing ships until someone merges it.

- A push with nothing releasable since the last release (docs, the
  back-merge) does nothing.
- A version set by hand is kept on later runs (plan --keep) whenever it
  is above the derived one, so a major has to be given only once, and a
  breaking marker still never derives one.
- If production moved during the run, nothing is pushed; the back-merge
  push rebuilds the PR. The force-push is leased against the branch tip
  the run saw, and skipped when the content is unchanged.
- A PR into production from any other branch is left alone: push runs
  warn and stop.

(cherry picked from commit 6bebbef)
GitHub blocks pull_request_target by default in public repositories from
2026-12-02. The PR title check only reads the event payload, so it runs on
pull_request, which also fires for fork PRs with a read-only token.

The CLA workflow has to write to fork PRs, so it stays on
pull_request_target. A repository Actions policy allows that trigger for
cla.yml only. Its header now says so.

(cherry picked from commit 02d99b9)
The dev API is now at dev-api.devicecloud.dev. Make it the dev apiUrl and
keep api.dev.devicecloud.dev as a legacy URL, so saved configs and CI
flags that name it still resolve to dev.

inferEnvFromApiUrl only recognised 'api.dev.', so a dev-api URL fell
through to prod and the Supabase copy of an upload would target the prod
project. Both hostnames now map to dev.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 25d09ca)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 2476581)
@riglar riglar changed the title fix: 5.12.1 hotfix — treat dev-api.devicecloud.dev as the dev environment chore: release 5.12.1 Nov 13, 2026
@claude

claude Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

This is a hand-built release PR. Every code, workflow and doc file in it is byte-identical to dev, so it was already reviewed in #305, #308, #314 and #316. What's left differs from dev only in the release bits:

The changelog's commit links (d65131f, bcbcc2f) are both in the PR's history.

@riglar
riglar merged commit b143e97 into production Nov 13, 2026
8 checks passed
@riglar
riglar deleted the hotfix/cli-5.12.1 branch November 13, 2026 11:25
finalerock44 added a commit that referenced this pull request Nov 13, 2026
production gained the 5.12.1 hotfix (#318) after this branch was built, so it no longer merged. The second parent is the release rebuilt the usual way: dev at 68a8250, production merged in with the release-please.yml and CLAUDE.md conflicts resolved to dev's side (#320), and a chore: release 5.13.0 commit. This merge takes that tree as-is, so the branch moves forward instead of being force-pushed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants