Skip to content

fix(release): publish alpha from changesets pre mode - #53

Merged
mahyarmlk merged 1 commit into
mainfrom
fix/release-alpha-pre-mode-publish
Jun 26, 2026
Merged

fix(release): publish alpha from changesets pre mode#53
mahyarmlk merged 1 commit into
mainfrom
fix/release-alpha-pre-mode-publish

Conversation

@mahyarmlk

Copy link
Copy Markdown
Collaborator

Summary

Fix the release:alpha script so manual Publish Alpha works while staying in Changesets prerelease mode.

Why

In Changesets pre mode, changeset publish --tag alpha fails with:

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

The alpha dist-tag is derived from .changeset/pre.json — the explicit --tag alpha is redundant and rejected.

Changes

  • package.json: release:alpha script — removed --tag alpha from changeset publish
  • docs/Release-Readiness.md: updated the publish command reference and added a note in the prerelease mode section

Tests

From clean dist:

  • pnpm test: 6 test files, 320 tests, all passed
  • pnpm typecheck: passed
  • pnpm build: all packages built
  • pnpm lint: passed
  • pnpm pack:check: all 4 publishable packages pass dry-run
  • pnpm changeset status: no pending bumps

Validation

Pre mode is confirmed active — .changeset/pre.json unchanged.

@mahyarmlk
mahyarmlk merged commit dc995d4 into main Jun 26, 2026
1 check passed
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.
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