Skip to content

Commit 816a882

Browse files
authored
fix: set contents:write and --tag alpha in alpha publish plumbing
- Grant contents:write permission so Changesets can push git tags - Add --tag alpha to changeset publish so alpha releases use the alpha npm dist-tag instead of overwriting latest - Update docs to remove the incorrect claim that --tag alpha is unnecessary during prerelease mode
1 parent 43276c2 commit 816a882

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/publish-alpha.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
concurrency: ${{ github.workflow }}
77

88
permissions:
9-
contents: read
9+
contents: write
1010

1111
jobs:
1212
publish-alpha:

docs/Release-Readiness.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +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`.
228+
- `release:alpha` must run `changeset publish --tag alpha` so the published packages use the `alpha` npm dist-tag instead of overwriting `latest`.
229229

230230
### Validation gates
231231

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",
11+
"release:alpha": "pnpm build && pnpm pack:check && changeset publish --tag alpha",
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)