From 87ff80524aef644d3fdbb71f2f2d8f3a12c83444 Mon Sep 17 00:00:00 2001 From: vesperships Date: Mon, 28 Sep 2026 07:31:31 -0700 Subject: [PATCH] fix(release): allow minor changesets in beta phase Relax collectChangesetValidation so patch and minor bumps can ship 0.2.0-beta.8; still refuse major. No other release behavior changes. --- scripts/manual-release.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/manual-release.ts b/scripts/manual-release.ts index 2b293416..8c4e4eff 100644 --- a/scripts/manual-release.ts +++ b/scripts/manual-release.ts @@ -158,7 +158,7 @@ function applyPendingChangesets(dryRun: boolean, stable: boolean): boolean { if (result.invalidEntries.length > 0) { fail( - `Only patch changesets are allowed for this phase. Found non-patch entries:\n${result.invalidEntries.join('\n')}`, + `Only patch and minor changesets are allowed for this phase. Found disallowed entries:\n${result.invalidEntries.join('\n')}`, ) } @@ -271,7 +271,8 @@ function collectChangesetValidation(): ChangesetValidationResult { continue } - if (entry.bumpType !== 'patch') { + // Beta phase: allow feature minors alongside patches; still refuse majors. + if (entry.bumpType === 'major') { invalidEntries.push( `${file}: ${entry.packageName} -> ${entry.bumpType}`, )