Skip to content

fix(release): make main a release branch, not a prerelease branch - #25

Merged
derekmurawsky merged 1 commit into
mainfrom
fix/releaserc-release-branch
Jul 23, 2026
Merged

fix(release): make main a release branch, not a prerelease branch#25
derekmurawsky merged 1 commit into
mainfrom
fix/releaserc-release-branch

Conversation

@derekmurawsky

Copy link
Copy Markdown
Contributor

What and why

The first Release dry-run failed with ERELEASEBRANCHES: semantic-release
requires at least one release branch, defined as a branch with no
prerelease property. .releaserc.json had marked main as a prerelease
branch (prerelease: "alpha"), leaving zero release branches, so every run
errored before doing anything.

Fix: "branches": ["main"]. main becomes a normal release branch and
publishes plain 0.x versions under the latest dist-tag. A 0.x major
already signals the pre-1.0, unstable-API posture, and the package has no
published consumers that need a dedicated alpha channel. The 1.0.0 jump
will come from a feat!/BREAKING CHANGE commit.

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

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
derekmurawsky force-pushed the fix/releaserc-release-branch branch from 63eff4c to f02cc82 Compare July 23, 2026 21:19
@derekmurawsky
derekmurawsky merged commit 0d3f7d3 into main Jul 23, 2026
2 checks passed
@derekmurawsky
derekmurawsky deleted the fix/releaserc-release-branch branch July 23, 2026 21:28
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.

1 participant