-
Notifications
You must be signed in to change notification settings - Fork 360
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
Set cargo-release
up
#2090
Set cargo-release
up
#2090
Conversation
This does pretty much everything the Question is: Do we need this or do we trust the CI to have caught everything? |
6f7f17f
to
3298c87
Compare
In general, CI will catch this, but if we do something like a security patch on multiple versions, it would be nice to have this step, since I probably will not push and wait for CI for all of them. Maybe we just add a |
Actually, I did an a little nicer fix to this. The checks are now run as part of the |
fdaaa56
to
d90593a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@aumetra Could you update the wiki entry about releasing to reflect the new workflow? I guess it will be a lot shorter now ^^ |
@chipshort Updated it. Kept it short and simple, let me know if you think there is something that should be clarified |
This PR sets up the
cargo-release
tool for the workspaceAbout the automatic changelog update, if we would define this on the workspace level, it would execute the replacements on the Changelog for each package in the workspace.
This is not what we want, so I simply chose a single package (
cosmwasm-vm
in this case) that contains the replacement rules.In short, when running
cargo release minor -x
, thecargo-release
tool will bump all the versions of the tools across the workspace by a minor version bump and runscargo publish
on all crates that aren't explicitly defined with apublish = false
.It also replaces
Unreleased - ReleaseDate
in the changelog with the new version and today's date, and creates a new section in the changelog for unreleased changes.If you want to try this yourself:
cargo-release
cargo release minor -v
The default behaviour of the tool is to run in dry-run mode, so this won't break anything (use
-x
to actually execute anything). And the-v
will tell you what the tool is about to do.