Skip to content

feat(release): add dist-tag, make-latest and prerelease support - #243

Merged
mcollina merged 4 commits into
mainfrom
feat/release-dist-tag
Oct 17, 2026
Merged

mcollina merged 4 commits into
mainfrom
feat/release-dist-tag

Conversation

@mcollina

@mcollina mcollina commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

Adds optional inputs to reusable-release.yml:

  • dist-tag (default latest): passed to npm publish --tag.
  • make-latest (default true): forwarded to the GitHub release's make_latest.
  • preid (default empty): prerelease identifier passed to npm version --preid.

semver now also accepts prepatch, preminor, premajor and prerelease. Prereleases are flagged as such on the GitHub release, never marked as latest, and are refused under the latest dist-tag.

Defaults keep current behavior. This makes the workflow usable from maintenance branches (e.g. fast-uri v2.x / v3.x, published under the two / three dist-tags): without it, npm publish would try to apply latest to an older version (rejected by npm 11, or moving latest backwards on older npm) and the GitHub release would be marked as latest.

🤖 Generated with Claude Code

Allow releasing older majors from maintenance branches without
moving the npm `latest` dist-tag or the GitHub latest release.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Accept prepatch, preminor, premajor and prerelease, with an optional preid input. Prereleases are flagged as such on GitHub, never marked as latest, and are refused under the 'latest' dist-tag.
@mcollina mcollina changed the title feat(release): add dist-tag and make-latest inputs feat(release): add dist-tag, make-latest and prerelease support Oct 15, 2026
@Eomm
Eomm requested a balanced review from Copilot October 15, 2026 16:03

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The workflow and documentation changes are consistent, with no unresolved findings or blocking issues identified.

0 open findings

What changed in this PR

Extends the reusable release workflow to support maintenance releases and prereleases while preserving existing defaults.

Changes:

  • Adds dist-tag, make-latest, and preid inputs.
  • Supports prerelease version bumps and prevents prereleases from being published as latest.
  • Documents maintenance-branch and prerelease usage.
File Description
README.md Documents new inputs and release examples.
.github/​workflows/​reusable-release.yml Adds release controls, prerelease validation, and GitHub release flags.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Tony133
Tony133 previously approved these changes Oct 16, 2026

@Tony133 Tony133 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread .github/workflows/reusable-release.yml
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Eomm
Eomm previously approved these changes Oct 16, 2026
Tony133
Tony133 previously approved these changes Oct 16, 2026

@Tony133 Tony133 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread .github/workflows/reusable-release.yml Outdated
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@mcollina
mcollina dismissed stale reviews from Tony133 and Eomm via 03e203f October 16, 2026 14:07

@Tony133 Tony133 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@mcollina
mcollina merged commit b0a2ab2 into main Oct 17, 2026
3 checks passed
@mcollina
mcollina deleted the feat/release-dist-tag branch October 17, 2026 19:03
mcollina added a commit to fastify/fast-uri that referenced this pull request Oct 17, 2026
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
mcollina added a commit to fastify/fast-uri that referenced this pull request Oct 17, 2026
Pin the reusable release workflow to the fastify/workflows#243 merge
and allow the pre* bump types (published under `three-next`), as on v2.x.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
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.

4 participants