Features â
- ⨠No manual steps[1]
- release from anywhere[2]
- đ¤ Everything is automated via GH Action Workflows[3]
- đ No need to give maintainers access to npm[4]
- đĻ PNPM and monorepo support by default
- also supports non-pnpm repos
- đ Release preview PR
- release via merge of the release preview PR
- đ Automatic changelog
- changelog entries editable by editing PR titles
Comparison â
Note that we take the stance of reducing friction for new contributors (regardless of how new to GitHub they are), we want to optimize for the contribution, and assume that maintainers can handle a little bit of process -- and with this stance, changesets is the most work out of this comparison.
Additionally, this comparison assumes the recommended configuration for each release tool.
| release-plan | release-it (requires computer) | changesets (requires computer) |
|---|---|---|
| add a label to a PR | same | have the repo cloned |
| merge the PR | same | add the remote of the PR-submitter to your local git |
| checkout the branch | ||
run pnpm changeset | ||
| write something about the change | ||
| push it back up to the PR-submitter's branch | ||
| ensure the PR title is what you want in the changelog | same | |
| have the repo cloned | ||
| update / sync repo locally | ||
run npx release -it | ||
| automation creates a preview PR | same | |
| merging that preview PR does the actual release | same |
Needed Access:
| release-plan | release-it | changesets | |
|---|---|---|---|
NPM_TOKEN | only ci | local | only ci |
GH_TOKEN | only ci | local | only ci |
Note that while it's recommended to use release-plan with full automation, release-plan can be used locally, as described in the Manual Installation section of this README.
Summary:
| release-plan | release-it | changesets | |
|---|---|---|---|
| number of steps | 5 | 6 | 8 |
| Downsides | n/a |
|
|
after initial setup, which is already mostly automated. âŠī¸
You can release from bed, the mall, the porcelain, anywhere! No need for a computer! (assuming you have a smart phone) âŠī¸
While GitHub Actions is the default setup via
create-release-plan-setupâŠī¸The NPM token can be granular, and the package needs to have its "Publishing access" configured to either "Don't require two-factor authentication" or, "Require two-factor authentication or an automation or granular access token" (recommended). This can be configured under
https://www.npmjs.com/package/{package-name}/accessâŠī¸