ci(release): publish the release notes, not just the tag #62

Merged
chrnx merged 1 commits from ci/github-releases into develop 2026-08-19 19:32:16 +00:00
Owner

El repo tenía dos tags y cero releases. Este paso crea el GitHub Release desde la sección del CHANGELOG que corresponde al tag, marcando prerelease cuando la versión trae sufijo — que es lo que mantiene la insignia Latest fuera de una beta.

Las notas salen del CHANGELOG y no del rango de commits: la sección ya está escrita para humanos cuando se corta el tag, y unas notas generadas repetirían asuntos de merge que nadie eligió.

scripts/changelog-section.mjs es un parser que escribe texto imposible de corregir en silencio una vez publicado, así que sus fronteras van fijadas por una prueba. Los dos bugs que cometí escribiéndolo están cubiertos: la sección más vieja tragándose el bloque [label]: url, y un enlace relativo sobreviviendo al cuerpo (verifiqué que cada prueba falla con su bug correspondiente y sólo con ése).

Idempotente como los publishes anteriores, y --verify-tag impide que invente un tag.

Ya aplicado a mano a los dos tags existentes, con los cuerpos verificados idénticos al CHANGELOG y comprobando que publicar el borrador no movió ningún tag:

El repo tenía dos tags y cero releases. Este paso crea el GitHub Release desde la sección del CHANGELOG que corresponde al tag, marcando prerelease cuando la versión trae sufijo — que es lo que mantiene la insignia *Latest* fuera de una beta. Las notas salen del CHANGELOG y no del rango de commits: la sección ya está escrita para humanos cuando se corta el tag, y unas notas generadas repetirían asuntos de merge que nadie eligió. `scripts/changelog-section.mjs` es un parser que escribe texto imposible de corregir en silencio una vez publicado, así que sus fronteras van fijadas por una prueba. Los dos bugs que cometí escribiéndolo están cubiertos: la sección más vieja tragándose el bloque `[label]: url`, y un enlace relativo sobreviviendo al cuerpo (verifiqué que cada prueba falla con su bug correspondiente y sólo con ése). Idempotente como los publishes anteriores, y `--verify-tag` impide que invente un tag. **Ya aplicado a mano a los dos tags existentes**, con los cuerpos verificados idénticos al CHANGELOG y comprobando que publicar el borrador no movió ningún tag: - https://github.com/Expressive-Tea/green-tea/releases/tag/v26.8.0-beta.0 - https://github.com/Expressive-Tea/green-tea/releases/tag/v26.8.0-beta.1
chrnx added 1 commit 2026-08-19 19:31:20 +00:00
ci(release): publish the release notes, not just the tag
CI / dco (pull_request) Successful in 4s
CI / runtimes (bun) (pull_request) Successful in 13s
CI / build (pull_request) Successful in 24s
CI / runtimes (edge) (pull_request) Successful in 12s
CI / runtimes (deno) (pull_request) Successful in 18s
0fad12688d
The repository had two tags and no releases, so the only way to find out what
a version changed was to open CHANGELOG.md and scroll to the right heading.
The release page is where people who do not read changelogs look, and a
repository with tags and no releases reads as abandoned.

Notes come from CHANGELOG.md rather than from the commit range. The section
was written for humans and already exists by the time a tag is cut; generated
notes would restate merge subjects nobody chose. `scripts/changelog-section.mjs`
extracts one version's section and makes its relative links absolute against
the tag — a release body resolves them against the release page, not the
repository, so `./BENCHMARKS.md` would have 404'd.

That script is a parser writing text that cannot be corrected quietly once it
is published, so its boundaries are pinned by a test rather than checked by
eye at release time. Both of the bugs it caught while being written are in
there: a section swallowing the `[label]: url` block that follows the oldest
version, and a relative link surviving into a body.

The step is idempotent like the publishes before it, so a re-run finishes what
is left instead of stopping here, and `--verify-tag` keeps it from inventing a
tag — it attaches to the one that triggered the run and cannot move it. A
prerelease is marked as one, which is what keeps the "Latest" badge off a beta.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
chrnx merged commit 4b04421ddd into develop 2026-08-19 19:32:16 +00:00
Sign in to join this conversation.