Repository navigation
Expand file tree
/
Copy pathrelease.toml
More file actions
66 lines (59 loc) · 3.09 KB
/
Copy pathrelease.toml
File metadata and controls
66 lines (59 loc) · 3.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Release configuration for the ariadnetor workspace.
#
# Drives `cargo release` (install once: `cargo install cargo-release`).
# Invoke through the cargo-make wrapper so the canonical form is
# discoverable and does not drift (pass the version directly, without a `--`
# separator — see the Makefile.toml `release` task comment for why):
#
# cargo make release 0.0.4 # dry-run: prints the full plan
# cargo make release 0.0.4 --execute # bump + publish + tag
#
# Every workspace member is published and takes its version from
# `version.workspace`, so a single run: bumps the shared workspace version,
# rewrites the hard-coded internal-dependency version requirements to match,
# builds every target of every package from the package itself (the
# pre-release hook below), publishes each crate in dependency order (waiting
# for each to appear on the index before the crate that needs it), and
# creates one annotated tag.
# All published crates move in lockstep on the one workspace version.
shared-version = true
# Only release from the default branch. cargo-release runs the version bump,
# tag, and publish on whatever branch is checked out; without this guard its
# default (`["*", "!HEAD"]`) would let an accidental `--execute` from a feature
# branch publish an immutable crates.io version. Releases are cut on `main`
# (see CONTRIBUTING.md), so restrict to it.
allow-branch = ["main"]
# Rewrite the `version = "x.y.z"` requirement on path dependencies that point
# at workspace members as they are bumped — this is what keeps the hard-coded
# internal-dep versions in sync across crates. The external `arpack` dependency
# has no `path`, so it is never a release target and its coincidentally-equal
# `version = "0.0.3"` is left untouched.
dependent-version = "upgrade"
# One tag for the whole workspace, matching the existing `v0.0.x` history
# (rather than the per-crate `<crate>-vX.Y.Z` default). tag-message overrides
# the default annotation, which otherwise names the first crate published
# (`chore: Release ariadnetor-core version ...`).
tag = true
tag-prefix = ""
tag-name = "v{{version}}"
tag-message = "Release v{{version}}"
# Before the release commit, build every target each package declares from
# the package as it will be published; a failure aborts the release before
# anything is committed or published. cargo-release runs the hook once per
# crate, in dry runs too, from the crate's directory, so the script is reached
# through WORKSPACE_ROOT, which cargo-release sets with CRATE_NAME and DRY_RUN.
# The script's header says what it builds.
pre-release-hook = [
"sh",
"-c",
"exec \"$WORKSPACE_ROOT/scripts/check-packaged-targets.sh\"",
]
# One squashed release commit for the whole workspace.
consolidate-commits = true
pre-release-commit-message = "chore(release): bump to v{{version}}"
# Publishing to crates.io is irreversible (versions are immutable), so it runs
# as part of the release. Pushing the commit + tag is left to a deliberate
# manual step because the default branch is guarded by the local pre-push hook;
# see CONTRIBUTING.md for the push command.
publish = true
push = false