GitHub Actions Release Flow
Workflows
ci.yml: install, lint, typecheck, test, buildrelease.yml: Changesets release PRs, npm publishing, GitHub releasesdocs.yml: GitHub Pages deploymentpackage-github.yml: GitHub Packages publishing
Release process
- Merge changes to
main. - If there are pending
.changeset/*.mdfiles,changesets/actionopens or updates a release PR. - Merge the release PR.
- The workflow versions packages, updates changelogs, publishes to npm, and creates a GitHub Release.
Required secrets
NPM_TOKENGITHUB_TOKENis provided by GitHub Actions automatically
Required repository settings
- Under
Settings -> Actions -> General -> Workflow permissions, enableAllow GitHub Actions to create and approve pull requests. - If the repository belongs to an organization, make sure the organization-level Actions policy does not block that setting.
First release
- Add
NPM_TOKENin repository settings. - Enable
Allow GitHub Actions to create and approve pull requestsin the repository Actions settings. - Enable GitHub Pages with GitHub Actions as the source.
- Merge a changeset to
main. - Merge the release PR produced by Changesets.