fix(release): publish alpha from changesets pre mode - #53
Merged
Conversation
mahyarmlk
added a commit
that referenced
this pull request
Jun 26, 2026
* fix(release): remove --tag alpha flag from release:alpha script 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 * docs: update release:alpha command in Release-Readiness.md 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.
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.
Summary
Fix the
release:alphascript so manual Publish Alpha works while staying in Changesets prerelease mode.Why
In Changesets pre mode,
changeset publish --tag alphafails with:The alpha dist-tag is derived from
.changeset/pre.json— the explicit--tag alphais redundant and rejected.Changes
package.json:release:alphascript — removed--tag alphafromchangeset publishdocs/Release-Readiness.md: updated the publish command reference and added a note in the prerelease mode sectionTests
From clean dist:
pnpm test: 6 test files, 320 tests, all passedpnpm typecheck: passedpnpm build: all packages builtpnpm lint: passedpnpm pack:check: all 4 publishable packages pass dry-runpnpm changeset status: no pending bumpsValidation
Pre mode is confirmed active —
.changeset/pre.jsonunchanged.