-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Two-phase release #119
Comments
You may be interested in how we (CoreOS/RedHat) perform team-reviewed releases using |
Thanks @lucab ! Your process is almost compatible with the one I described. I might not support github pull request/issue creation (possible to hook into |
it'd be super neat to have a way to run cargo release with protected |
I've got this kind of workflow for my own (and, coincidentally, for Ryan's cargo-binstall) crates, and I've just made a github action that provides support for it: https://github.com/cargo-bins/release-pr |
With the upcoming 0.22 release, users will be able to create their own two-phase release Workflow 1 Assuming the CHANGELOG is always valid A contributor runs: $ cargo release version patch -x
$ git commit -a -m "..." and creates a PR. CI runs The PR gets merged. Pushes to Workflow 2 A contributor runs: $ cargo release patch -x
$ cargo release replace -x
$ git commit -a -m "..." and creates a PR. CI runs The PR gets merged. Pushes to Neither of these workflows work with |
v0.22 is now out. The main question I've had for myself is if the individual subcommands are sufficient or if we should offer a |
So, I found this issue after opening #809 and #810 (sorry). The "two-phase" release I ended up with after reading this is:
Maybe fixing #810 could make things even better for step 2 e.g. |
Another scenario I have been thinking about is to support release proposal. I'm not sure if cargo-release really wants to cover the whole process. Typically it's like:
cargo prepare-release
:cargo perform-release
to actually merge the release branch and publish to crates.ioThis process could work for projects maintained by several devs or a committee. At the moment,
cargo-release
only works well for personal development.The text was updated successfully, but these errors were encountered: