Skip to content

Commit 021197c

Browse files
authored
fix(release): remove --tag alpha flag from release:alpha script (#80)
* 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.
1 parent 44c1339 commit 021197c

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

docs/Release-Readiness.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,8 @@ Key rules:
223223
- Version Packages PRs must not bump packages to stable versions.
224224
- Stable versions are only allowed after intentionally exiting prerelease mode via `pnpm changeset pre exit`.
225225
- The GitHub Actions PR creation setting (`GITHUB_TOKEN` permissions for creating and approving PRs) may need manual enabling after alpha versioning is fixed.
226-
- `release:alpha` must run `changeset publish --tag alpha` so the published packages use the `alpha` npm dist-tag instead of overwriting `latest`.
226+
- While in prerelease mode, the `alpha` npm dist-tag is controlled by `.changeset/pre.json` (the `"tag": "alpha"` field), not by the `release:alpha` command line.
227+
- `release:alpha` must NOT pass `--tag alpha` to `changeset publish` because changeset rejects explicit `--tag` in prerelease mode.
227228

228229
### Validation gates
229230

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"lint": "tsc -p tsconfig.typecheck.json",
99
"changeset": "changeset",
1010
"version:packages": "changeset version",
11-
"release:alpha": "pnpm build && pnpm pack:check && changeset publish --tag alpha",
11+
"release:alpha": "pnpm build && pnpm pack:check && changeset publish",
1212
"pack:check": "pnpm -r --filter @intent-framework/core --filter @intent-framework/dom --filter @intent-framework/router --filter @intent-framework/testing exec npm pack --dry-run",
1313
"dev:web-basic": "pnpm --dir examples/web-basic dev",
1414
"dev:canonical": "pnpm --dir examples/canonical-invite dev"

0 commit comments

Comments
 (0)