From 6807ac3be90a3871a7a9e093c5a7e0369464d275 Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Thu, 3 Dec 2026 11:47:59 +0100 Subject: [PATCH] ci(release): publish v3.x releases under the fastify5 dist-tag @fastify/forwarded 4.0.0 goes to latest from main. Releases from this maintenance branch must not move latest back, so they always publish under the fastify5 dist-tag and are not marked as the latest GitHub release. Only patch and minor releases are offered here. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Sfj4nEK6BT2fQMtaQ22BnF --- .github/workflows/release.yml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5a81ef2..d28dbda 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,16 +10,6 @@ on: options: - patch - minor - - major - - prepatch - - preminor - - premajor - - prerelease - preid: - description: 'Prerelease identifier (e.g. rc), used by the pre* bump types' - required: false - type: string - default: 'rc' permissions: {} @@ -31,5 +21,6 @@ jobs: uses: fastify/workflows/.github/workflows/reusable-release.yml@6d3d0270cc69d31a846f126855fcb6306515ad33 with: semver: ${{ inputs.semver }} - preid: ${{ inputs.preid }} - dist-tag: ${{ startsWith(inputs.semver, 'pre') && 'next' || 'latest' }} + # Maintenance line for fastify 5: `latest` and the latest GitHub release belong to main. + dist-tag: fastify5 + make-latest: false