A tag stages before it can publish #91

Merged
chrnx merged 2 commits from ci/tag-staging-and-promotion into develop 2026-09-04 13:23:22 +00:00
Owner

Two commits, both prerequisites for today's v26.9.0-beta.1.

ci(release) — the tag means something different on each forge

A v* tag used to do everything at once: promote.yml mirrored it to GitHub and
release.yml published it to npm and JSR. Creating the tag was the release, so the only
place left to catch a bad one was a registry where npm allows 72 hours to unpublish and JSR
allows nothing.

  • stage.yml now also triggers on v*, publishing that exact commit to the internal
    Verdaccio through the real path — same prepublishOnly gate, same tarball.
  • promote.yml no longer mirrors tags, and --tags comes off the branch push too.
    That second part is the one that mattered: dropping only the trigger would have left any
    tag in the runner's clone riding along with the next promotion of main, which is a
    production publish as a side effect of a merge.

Promoting a tag is now git push gh v<version>, taken after reading the staging run.

The refusal to stage a stable version is left in place with a note explaining why it will
need revisiting — it first bites at the release most worth staging.

docs(changelog) — the date

2026-09-03 → 2026-09-04. AGENTS.md is explicit that a dated heading is a receipt, not a
plan, and that this drift already happened once on beta.1. The tag ships today.

Verified

promote.yml → {'push': {'branches': ['main']}}; stage.yml →
{'push': {'branches': ['release/**'], 'tags': ['v*']}}. Both parse. AGENTS.md fails
prettier before and after this change, and format:check only covers src/**/*.ts, so
reformatting it was left out rather than buried here.

Two commits, both prerequisites for today's `v26.9.0-beta.1`. ### `ci(release)` — the tag means something different on each forge A `v*` tag used to do everything at once: `promote.yml` mirrored it to GitHub and `release.yml` published it to npm and JSR. Creating the tag *was* the release, so the only place left to catch a bad one was a registry where npm allows 72 hours to unpublish and JSR allows nothing. - `stage.yml` now also triggers on `v*`, publishing that exact commit to the internal Verdaccio through the real path — same `prepublishOnly` gate, same tarball. - `promote.yml` no longer mirrors tags, and **`--tags` comes off the branch push too**. That second part is the one that mattered: dropping only the trigger would have left any tag in the runner's clone riding along with the next promotion of `main`, which is a production publish as a side effect of a merge. Promoting a tag is now `git push gh v<version>`, taken after reading the staging run. The refusal to stage a stable version is left in place with a note explaining why it will need revisiting — it first bites at the release most worth staging. ### `docs(changelog)` — the date `2026-09-03` → `2026-09-04`. AGENTS.md is explicit that a dated heading is a receipt, not a plan, and that this drift already happened once on beta.1. The tag ships today. ### Verified `promote.yml` → `{'push': {'branches': ['main']}}`; `stage.yml` → `{'push': {'branches': ['release/**'], 'tags': ['v*']}}`. Both parse. AGENTS.md fails `prettier` before and after this change, and `format:check` only covers `src/**/*.ts`, so reformatting it was left out rather than buried here.
chrnx added 2 commits 2026-09-04 13:10:40 +00:00
A `v*` tag did two things at once: `promote.yml` mirrored it to GitHub, and GitHub's
`release.yml` published it to npm and JSR. Creating the tag *was* the release, so the only
place to catch a bad one was a registry where npm gives 72 hours to unpublish and JSR gives
nothing — a version number spent on a mistake is spent for good.

The tag now means something different on each forge. On Gitea it triggers `stage.yml`,
which runs the real publish path — same `prepublishOnly` gate, same tarball, same commit —
against the internal Verdaccio, where a version can be overwritten. On GitHub it still
publishes for real. Nothing carries the tag between them; that push is a decision made
after reading the staging run.

`--tags` comes off the branch push in the same change, and it is the part that mattered
most. Removing the tag trigger alone would have left any tag in the runner's clone riding
along with the next promotion of `main` — a production publish as a side effect of a
merge, which is the exact failure the split is meant to prevent.

The refusal to stage a stable version is left as it is, with a note. It will first bite at
the release most worth staging, and the fix there is a suffixed staging version rather than
dropping a guard that keeps a stable number from mutating under an internal consumer.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
docs(changelog): date the section for the day the tag actually ships
CI / dco (pull_request) Successful in 6s
CI / build (pull_request) Successful in 29s
CI / runtimes (deno) (pull_request) Successful in 22s
CI / runtimes (edge) (pull_request) Successful in 14s
CI / runtimes (bun) (pull_request) Successful in 16s
dfe71102ca
The heading was written for 2026-09-02, the day the cut was planned, then dated 2026-09-03
when it was closed. Neither day shipped anything, and the workflow split that has to land
before the tag moved it once more.

AGENTS.md is explicit that a dated heading is a receipt rather than a plan, and that this
exact drift already happened once on beta.1 — a section claiming a release that did not
exist, with a day of further work accumulating underneath it. Correcting the date is
cheaper than being the second instance of the thing the guidance warns about.

Today is the day the tag is created, so the receipt says today.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
chrnx merged commit 85b6c703bb into develop 2026-09-04 13:23:22 +00:00
Sign in to join this conversation.