| 1 | # Release Checklist |
| 2 | |
| 3 | These steps assume that you've checked out the Soketto repository and are in the root directory of it. |
| 4 | |
| 5 | We also assume that ongoing work done is being merged directly to the `master` branch. |
| 6 | |
| 7 | 1. Ensure that everything you'd like to see released is on the `master` branch. |
| 8 | |
| 9 | 2. Create a release branch off `master`, for example `release-v0.6.0`. The branch name should start with `release` |
| 10 | so that we can target commits with CI. Decide how far the version needs to be bumped based on the changes to date. |
| 11 | If unsure what to bump the version to (e.g. is it a major, minor or patch release), check with the Parity Tools team. |
| 12 | |
| 13 | 3. Check that you're happy with the current documentation. |
| 14 | |
| 15 | ``` |
| 16 | cargo doc --open --all-features |
| 17 | ``` |
| 18 | |
| 19 | CI checks for broken internal links at the moment. Optionally you can also confirm that any external links |
| 20 | are still valid like so: |
| 21 | |
| 22 | ``` |
| 23 | cargo install cargo-deadlinks |
| 24 | cargo deadlinks --check-http -- --all-features |
| 25 | ``` |
| 26 | |
| 27 | If there are minor issues with the documentation, they can be fixed in the release branch. |
| 28 | |
| 29 | 4. Bump the crate version in `Cargo.toml` to whatever was decided in step 2. |
| 30 | |
| 31 | 5. Update `CHANGELOG.md` to reflect the difference between this release and last. If you're unsure of |
| 32 | what to add, check with the Tools team. |
| 33 | |
| 34 | One way to gain some inspiration on what to write is to look at the [closed PRs](https://github.com/paritytech/soketto/pulls?q=is%3Apr+is%3Aclosed). |
| 35 | |
| 36 | You can also look through the commit history to find the code changes since the last release (eg `git log --pretty LAST_VERSION_TAG..HEAD`). |
| 37 | |
| 38 | 6. Commit any of the above changes to the release branch and open a PR in GitHub with a base of `master`. |
| 39 | |
| 40 | 7. Once the branch has been reviewed and passes CI, merge it. |
| 41 | |
| 42 | 8. Now, we're ready to publish the release to crates.io. |
| 43 | |
| 44 | Checkout `master`, ensuring we're looking at that latest merge (`git pull`). |
| 45 | |
| 46 | Next, do a dry run to make sure that things seem sane: |
| 47 | ``` |
| 48 | cargo publish --dry-run |
| 49 | ``` |
| 50 | |
| 51 | If we're happy with everything, proceed with the release: |
| 52 | ``` |
| 53 | cargo publish |
| 54 | ``` |
| 55 | |
| 56 | 9. If the release was successful, then tag the commit that we released in the `master` branch with the |
| 57 | version that we just released, for example: |
| 58 | |
| 59 | ``` |
| 60 | git tag v0.6.0 # use the version number you've just published to crates.io, not this one |
| 61 | git push --tags |
| 62 | ``` |
| 63 | |
| 64 | Once this is pushed, go along to [the releases page on GitHub](https://github.com/paritytech/soketto/releases) |
| 65 | and draft a new release which points to the tag you just pushed to `master` above. Copy the changelog comments |
| 66 | for the current release into the release description. |
| 67 |