* Add release checklist * Subxt, not Soketto * more Soketto -> Subxt fixes * Signed tags and note about incrementing version of each crate Co-authored-by: David <dvdplm@gmail.com> Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com> * Add command to publish crates in required order * undo test breakages and codegen first since macro depends on it * Update RELEASING.md Co-authored-by: Andrew Jones <ascjones@gmail.com> * sleep 10, and text niggles Co-authored-by: David <dvdplm@gmail.com> Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com> Co-authored-by: Andrew Jones <ascjones@gmail.com>
3.4 KiB
Release Checklist
These steps assume that you've checked out the Subxt repository and are in the root directory of it.
We also assume that ongoing work done is being merged directly to the master branch.
-
Ensure that everything you'd like to see released is on the
masterbranch. -
Create a release branch off
master, for examplerelease-v0.17.0. Decide how far the version needs to be bumped based on the changes to date. If unsure what to bump the version to (e.g. is it a major, minor or patch release), check with the Parity Tools team. -
Check that you're happy with the current documentation.
cargo doc --open --all-featuresCI checks for broken internal links at the moment. Optionally you can also confirm that any external links are still valid like so:
cargo install cargo-deadlinks cargo deadlinks --check-http -- --all-featuresIf there are minor issues with the documentation, they can be fixed in the release branch.
-
Bump the crate version in
Cargo.tomlto whatever was decided in step 2 forsubxt-codegen,subxt-macro,subxtandsubxt-cli. -
Update
CHANGELOG.mdto reflect the difference between this release and the last. If you're unsure of what to add, check with the Tools team. See theCHANGELOG.mdfile for details of the format it follows.Any closed PRs between the last release and this release branch should be noted.
-
Commit any of the above changes to the release branch and open a PR in GitHub with a base of
master. -
Once the branch has been reviewed and passes CI, merge it.
-
Now, we're ready to publish the release to crates.io.
Checkout
master, ensuring we're looking at that latest merge (git pull).The crates in this repository need publishing in a specific order, since they depend on each other. Additionally,
subxt-macrohas a circular dev dependency onsubxt, so we usecargo hackto remove dev dependencies (and--allow-dirtyto ignore the git changes as a result) to publish it.So, first install
cargo hackwithcargo install cargo hack. Next, you can run something like the following command to publish each crate in the required order (allowing a little time inbetween each to letcrates.iocatch up) with what we've published).(cd codegen && cargo publish) && \ sleep 10 && \ (cd macro && cargo hack publish --no-dev-deps --allow-dirty) && \ sleep 10 && \ cargo publish && \ sleep 10 && \ (cd cli && cargo publish);If you run into any issues regarding crates not being able to find suitable versions of other
subxt-*crates, you may just need to wait a little longer and then run the remaining portion of that command. -
If the release was successful, tag the commit that we released in the
masterbranch with the version that we just released, for example:git tag -s v0.17.0 # use the version number you've just published to crates.io, not this one git push --tagsOnce this is pushed, go along to the releases page on GitHub and draft a new release which points to the tag you just pushed to
masterabove. Copy the changelog comments for the current release into the release description.