7 releases

Uses new Rust 2021

0.1.6 Jun 18, 2022
0.1.5 May 29, 2022
0.1.2 Mar 27, 2022
0.1.1 Feb 13, 2022

#106 in Testing

Download history 6/week @ 2022-03-11 8/week @ 2022-03-18 21/week @ 2022-03-25 3/week @ 2022-04-01 5/week @ 2022-04-08 3/week @ 2022-04-22 24/week @ 2022-04-29 27/week @ 2022-05-06 70/week @ 2022-05-13 26/week @ 2022-05-20 88/week @ 2022-05-27 51/week @ 2022-06-03 11/week @ 2022-06-10 30/week @ 2022-06-17

182 downloads per month

MIT/Apache

2KB

release-plz

Crates.io CI Docker

Release-plz updates the versions and changelogs of your rust packages, by analyzing your git history, based on conventional commits:

  • release-plz update updates your project locally, without committing any change.
  • release-plz release-pr opens a GitHub Pull Request.

Once the changes are merged to the main branch, you can use release-plz release to publish the new versions of the packages.

GitHub action

The simplest way to update your project with release-plz is to use the GitHub action.

Installation

Docker

docker pull marcoieni/release-plz

Cargo

  • Install the rust toolchain in order to have cargo installed by following this guide.
  • run cargo install release-plz --locked

Example Usage

Make sure you have git installed when running release-plz.

Update

With release-plz update you can update the version and the changelog of the packages of a local workspace.

In the following example, I run release-plz on the release-plz project itself. Release-plz increases the version and the changelog of the packages with unpublished changes.

release-plz update

Release PR

With release-plz release-pr you can open a GitHub Pull Request that updates the version of the packages of a local workspace.

In the following example, I run release-plz on the release-plz project itself. Release-plz opens a PR that increases the version and the changelog of the packages with unpublished changes.

release-plz release-pr

Publishing

The goal of release-plz is to create a fully automated release pipeline. This means you can easily release changes more frequently, without the fear of doing typo or other subtle manual mistakes you can make when releasing from your terminal.

You can release all the unpublished packages by running release-plz release.

Changelog format

Release-plz generates the changelog by using git-cliff. By default, release-plz uses the keep a changelog format. You can customize the changelog format, by providing a git-cliff configuration file with the --changelog-config argument.

Similar projects

  • release-please: release-plz is inspired by release-please, but instead of determining the next versions based on git tags, release-plz compares local packages with the ones published in the cargo registry. Plus, release-plz doesn't need any configuration.
  • cargo smart-release: Fearlessly release workspace crates and with beautiful semi-handcrafted changelogs.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

See CONTRIBUTING.md.

Credits

Parts of the codebase are inspired by:

Dependencies

~4MB
~76K SLoC