Skip to content

Commit dc995d4

Browse files
authored
fix(release): publish alpha from changesets pre mode (#53)
1 parent 1d918fa commit dc995d4

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
@@ -201,7 +201,7 @@ A [publish-alpha.yml](../.github/workflows/publish-alpha.yml) workflow exists fo
201201
- **Trigger**: manual only (`workflow_dispatch`)
202202
- **Environment**: requires the `npm` GitHub environment
203203
- **Pre-publish validation**: test, typecheck, build, lint, pack:check
204-
- **Publish command**: `pnpm release:alpha` (builds, runs pack check, then `changeset publish --tag alpha`)
204+
- **Publish command**: `pnpm release:alpha` (builds, runs pack check, then `changeset publish`)
205205
- **npm auth**: configured at runtime via `NODE_AUTH_TOKEN`; no committed `.npmrc` file
206206
- Both workflows explicitly pin pnpm 10 via `pnpm/action-setup@v6` with `version: 10`
207207

@@ -225,6 +225,7 @@ Key rules:
225225
- Version Packages PRs must not bump packages to stable versions.
226226
- Stable versions are only allowed after intentionally exiting prerelease mode via `pnpm changeset pre exit`.
227227
- The GitHub Actions PR creation setting (`GITHUB_TOKEN` permissions for creating and approving PRs) may need manual enabling after alpha versioning is fixed.
228+
- While the repo is in Changesets alpha prerelease mode, `release:alpha` must run `changeset publish` without `--tag alpha`. The alpha dist-tag is derived from `.changeset/pre.json`.
228229

229230
### Validation gates
230231

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
},

0 commit comments

Comments
 (0)