fix(release): make main a release branch, not a prerelease branch - #25
Merged
Conversation
semantic-release requires at least one release branch (one with no prerelease property). The previous config marked main as a prerelease branch, leaving zero release branches, so every run failed with ERELEASEBRANCHES. Publish plain 0.x versions from main under the latest dist-tag instead; a 0.x major already signals the pre-1.0 posture, and the package has no consumers that need an alpha channel. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
derekmurawsky
force-pushed
the
fix/releaserc-release-branch
branch
from
July 23, 2026 21:19
63eff4c to
f02cc82
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
The first Release dry-run failed with
ERELEASEBRANCHES: semantic-releaserequires at least one release branch, defined as a branch with no
prereleaseproperty..releaserc.jsonhad markedmainas a prereleasebranch (
prerelease: "alpha"), leaving zero release branches, so every runerrored before doing anything.
Fix:
"branches": ["main"].mainbecomes a normal release branch andpublishes plain
0.xversions under thelatestdist-tag. A0.xmajoralready signals the pre-1.0, unstable-API posture, and the package has no
published consumers that need a dedicated alpha channel. The
1.0.0jumpwill come from a
feat!/BREAKING CHANGEcommit.Docs (ADR 0007,
docs/releases.md) updated to match.Run that failed: https://github.com/OpenSourceScouting/design-system/actions/runs/30044969429
🤖 Generated with Claude Code