Skip to content

ci(release): allow publishing prereleases - #93

Merged
Tony133 merged 1 commit into
mainfrom
ci/release-prereleases
Dec 2, 2026
Merged

Tony133 merged 1 commit into
mainfrom
ci/release-prereleases

Conversation

@mcollina

@mcollina mcollina commented Dec 1, 2026

Copy link
Copy Markdown
Member

This lets the release workflow publish prereleases. The shared reusable-release.yml has supported them since fastify/workflows v7.2.0, but this repo's release.yml only offered patch, minor and major.

  • semver now also offers prepatch, preminor, premajor and prerelease.
  • A new preid input defaults to rc, so premajor on X.Y.Z publishes (X+1).0.0-rc.0 and prerelease then gives -rc.1. npm ignores it for patch, minor and major.
  • Prereleases go to the next dist-tag. Every other release still goes to latest.

The file is the same release.yml fast-uri already uses, plus the rc default. It is needed for the Fastify v6 rollout, where each package publishes its next major as -rc.N first.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Sfj4nEK6BT2fQMtaQ22BnF

Expose the prerelease bump types of the shared release workflow
(fastify/workflows v7.2.0): prepatch, preminor, premajor and
prerelease, with a preid input that defaults to rc. Prereleases are
published under the next dist-tag; other releases still go to latest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Sfj4nEK6BT2fQMtaQ22BnF
@Tony133
Tony133 merged commit 502c210 into main Dec 2, 2026
38 of 39 checks passed
@Tony133
Tony133 deleted the ci/release-prereleases branch December 2, 2026 10:32
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