These steps assume that you've checked out the Jsonrpsee 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 examplechore-release-v0.15.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. -
Bump the crate version (several locations) in
Cargo.tomlof the workspace to whatever was decided in step 2. -
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.First, if there have been any significant changes, add a description of those changes to the top of the changelog entry for this release. This will help people to understand the impact of the change and what they need to do to adopt it.
Next, you can use the following script to generate the merged PRs between releases:
./scripts/generate_changelog.shEnsure that the script picked the latest published release tag (e.g. if releasing
v0.15.0, the script should provide something like[+] Latest release tag: v0.14.0). Then group the PRs into "Fixed", "Added" and "Changed" sections, and make any other adjustments that you feel are necessary for clarity. -
Commit any of the above changes to the release branch and open a PR in GitHub with a base of
master. Name the branch something likechore(release): v0.15.0. -
Once the branch has been reviewed and passes CI, merge it.
-
Now, we're ready to publish the release to crates.io. Run
./scripts/publish.shto publish all crates in the correct order. -
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.15.0 # use the version number you've just published to crates.io, not this 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.