Skip to content

fix(release): remove --tag alpha flag from release:alpha script - #80

Merged
mahyarmlk merged 2 commits into
mainfrom
fix/remove-alpha-tag-from-release-script
Jun 26, 2026
Merged

fix(release): remove --tag alpha flag from release:alpha script#80
mahyarmlk merged 2 commits into
mainfrom
fix/remove-alpha-tag-from-release-script

Conversation

@mahyarmlk

Copy link
Copy Markdown
Collaborator

The release:alpha script passed --tag alpha to changeset publish, but this conflicts with changesets prerelease mode. The .changeset/pre.json already has "tag": "alpha" set, so in prerelease mode changeset uses that tag automatically.

This was previously fixed in PR #53 but regressed in commit 816a882.

Passing --tag explicitly in prerelease mode causes changeset to error with:

🦋  error Releasing under custom tag is not allowed in pre mode
🦋  To resolve this exit the pre mode by running `changeset pre exit`

This is a tooling-only fix.

The release:alpha script passed --tag alpha to changeset publish, but
this conflicts with changesets prerelease mode (pre.json has tag alpha
already set). This was previously fixed in PR #53 but regressed in
commit 816a882.

In prerelease mode, changeset publish uses the tag defined in
pre.json automatically. Passing --tag explicitly causes:
  error: Releasing under custom tag is not allowed in pre mode
Remove instruction that release:alpha must pass --tag alpha to
changeset publish. While in prerelease mode, the tag is controlled
by .changeset/pre.json and changeset rejects explicit --tag.
@mahyarmlk
mahyarmlk merged commit 021197c into main Jun 26, 2026
1 check passed
@mahyarmlk
mahyarmlk deleted the fix/remove-alpha-tag-from-release-script branch June 26, 2026 13:10
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