2502c1b6da
Partially fixes https://github.com/graphql-rust/juniper/issues/248. * Install `cargo-release`. (currently need a patched one with https://github.com/sunng87/cargo-release/pull/74) * Run `cargo make release-dry-run` to do a dry run of a release * Run `cargo make release` to do a minor versioned release of every crate * Run `cargo make release-patch` to do a patch release of every crate To only release one crate: * Change directories into the desired crate * Point `cargo-make` to the workspace-level Makefile when running a command. For example, `cargo make --makefile ../Makefile.toml release-dry-run`. From the workspace root, run `cargo
17 lines
721 B
TOML
17 lines
721 B
TOML
# https://github.com/sagiegurari/cargo-make#automatically-extend-workspace-makefile
|
|
[env]
|
|
CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = "true"
|
|
|
|
# Run `cargo make release` to push a new minor release of every crate.
|
|
[tasks.release]
|
|
args = ["release", "--config", "../_build/release.toml"]
|
|
|
|
# Run `cargo make release-patch` to push a new patch release of every crate.
|
|
[tasks.release-patch]
|
|
args = ["release", "--config", "../_build/release.toml", "patch"]
|
|
|
|
# Run `cargo make release-dry-run` to do a dry run.
|
|
[tasks.release-dry-run]
|
|
description = "Run `cargo-release --dry-run` for every crate"
|
|
command = "${HOME}/src/cargo-release/target/debug/cargo-release"
|
|
args = ["release", "--config", "../_build/release.toml", "--dry-run"]
|