RELEASE-CHECKLIST.md
This file
Path
RELEASE-CHECKLIST.md
57 lines · 2.8 KiB · Markdown
Last changed by
doc: move CHANGELOG update before dependency updatesAndrew Gallantbefore adoption365384a
History of this fileTake it
The walk stopped after 200 commits: lines older than 5f5da48 point at it.
globset: support nested alternatesLuke Sandbergbefore adoption5f5da48
lines 1–9why, one step back1# Release Checklist23* Ensure local `master` is up to date with respect to `origin/master`.4* Run `cargo update` and review dependency updates. Commit updated5 `Cargo.lock`.6* Run `cargo outdated` and review semver incompatible updates. Unless there is7 a strong motivation otherwise, review and update every dependency. Also8 run `--aggressive`, but don't update to crates that are still in beta.9* Update date in `crates/core/flags/doc/template.rg.1`.doc: move CHANGELOG update before dependency updatesAndrew Gallantbefore adoption365384a
line 10why, one step back10* Update the CHANGELOG as appropriate.globset: support nested alternatesLuke Sandbergbefore adoption5f5da48
lines 11–57why, one step back11* Review changes for every crate in `crates` since the last ripgrep release.12 If the set of changes is non-empty, issue a new release for that crate. Check13 crates in the following order. After updating a crate, ensure minimal14 versions are updated as appropriate in dependents. If an update is required,15 run `cargo-up --no-push crates/{CRATE}/Cargo.toml`.16 * crates/globset17 * crates/ignore18 * crates/cli19 * crates/matcher20 * crates/regex21 * crates/pcre222 * crates/searcher23 * crates/printer24 * crates/grep (bump minimal versions as necessary)25 * crates/core (do **not** bump version, but update dependencies as needed)26* Edit the `Cargo.toml` to set the new ripgrep version. Run27 `cargo update -p ripgrep` so that the `Cargo.lock` is updated. Commit the28 changes and create a new signed tag. Alternatively, use29 `cargo-up --no-push --no-release Cargo.toml {VERSION}` to automate this.30* Run `cargo package` and ensure it succeeds.31* Push changes to GitHub, NOT including the tag. (But do not publish a new32 version of ripgrep to crates.io yet.)33* Once CI for `master` finishes successfully, push the version tag. (Trying to34 do this in one step seems to result in GitHub Actions not seeing the tag35 push and thus not running the release workflow.)36* Wait for CI to finish creating the release. If the release build fails, then37 delete the tag from GitHub, make fixes, re-tag, delete the release and push.38* Copy the relevant section of the CHANGELOG to the tagged release notes.39 Include this blurb describing what ripgrep is:40 > In case you haven't heard of it before, ripgrep is a line-oriented search41 > tool that recursively searches the current directory for a regex pattern.42 > By default, ripgrep will respect gitignore rules and automatically skip43 > hidden files/directories and binary files.44* Run `cargo publish`.45* Run `ci/sha256-releases {VERSION} >> pkg/brew/ripgrep-bin.rb`. Then edit46 `pkg/brew/ripgrep-bin.rb` to update the version number and sha256 hashes.47 Remove extraneous stuff added by `ci/sha256-releases`. Commit changes.48* Add TBD section to the top of the CHANGELOG:49 ```50 TBD51 ===52 Unreleased changes. Release notes have not yet been written.53 ```5455Note that [`cargo-up` can be found in BurntSushi's dotfiles][dotfiles].5657[dotfiles]: https://github.com/BurntSushi/dotfiles/blob/master/bin/cargo-up