mirror of
https://github.com/Fission-AI/OpenSpec.git
synced 2026-09-14 20:16:53 +08:00
807b9d32a6
* Clarify release automation proposal * chore(release): phase 1 – wire up changesets action (dry-run publish) and GitHub release drafting * ci(release): phase 1 – add NODE_AUTH_TOKEN alias and registry/auth config for npm (dry-run)
1.3 KiB
1.3 KiB
1. Release workflow automation
- 1.1 Add a
.github/workflows/release.ymlthat runs on pushes tomain, sets up pnpm + Node 20, installs dependencies, and invokeschangesets/action@v1withpublish: pnpm run release. - 1.2 Configure the action with
createGithubReleases: trueand document required secrets (NPM_TOKEN, defaultGITHUB_TOKEN) plus recommended concurrency safeguards. - 1.3 Validate the workflow using
actor a dry-run push to confirm the action opens release PRs when changesets exist and publishes when the release PR merge lands.
2. Package release script
- 2.1 Add a
releasescript topackage.jsonthat builds the project and runschangeset publishusing pnpm. - 2.2 Ensure the script respects the existing
prepare/prepublishOnlyhooks to avoid duplicate builds and update documentation or scripts if adjustments are needed.
3. Documentation and recovery steps
- 3.1 Update maintainer docs (e.g., README or
/docs) with the end-to-end automated release flow, explicitly removing the manual tag/release steps that are no longer required and explaining how changesets drive the release PR. - 3.2 Document fallback steps for failed publishes (rerun workflow, manual publish) and the hotfix path when a release must be cut without pending changesets.