27 lines
1.5 KiB
Markdown
27 lines
1.5 KiB
Markdown
# Release checklist
|
|
|
|
This checklist is meant to be used as a guide for the `crates.io` release process.
|
|
|
|
Releases are always made in lockstep, meaning that all crates in the repository
|
|
are released with the same version number, regardless of whether they have
|
|
changed or not.
|
|
|
|
## Requirements
|
|
|
|
- [cargo-release](https://github.com/crate-ci/cargo-release): `cargo install cargo-release`
|
|
- [git-cliff](https://github.com/orhun/git-cliff) (patched with [orhun/git-cliff#711](https://github.com/orhun/git-cliff/pull/711)): `cargo install --git https://github.com/DaniPopes/git-cliff.git --branch fix-include-paths git-cliff`
|
|
- [dist](https://github.com/astral-sh/cargo-dist): `cargo install cargo-dist`
|
|
|
|
## Steps
|
|
|
|
- [ ] Create a new branch: `git checkout -b release-<version>`
|
|
- [ ] Run `cargo-release` to handle the version bump, changelog, and commit: `cargo release --execute --no-publish --no-tag --allow-branch=<branch> <version>`
|
|
- [ ] Update changelog message if necessary.
|
|
- [ ] Update `README.md`'s `### Library usage`.
|
|
- [ ] Push, open and merge the PR. The name of the PR should be the same as the `cargo-release` commit message.
|
|
- [ ] `git checkout main` and `git pull`.
|
|
- [ ] Verify `dist plan` is correct.
|
|
- [ ] Run `cargo-release` to tag and publish: `NO_GIT_CLIFF=1 cargo release --execute [--no-verify] <version>`
|
|
|
|
These steps are adapted from the recommended `cargo-release` + `dist` workflow, described in more detail [here](https://opensource.axo.dev/cargo-dist/book/workspaces/cargo-release-guide.html#using-cargo-release-with-pull-requests).
|