diff --git a/.github/workflows/release-plz.yml b/.github/workflows/release-plz.yml index 4164977..9916437 100644 --- a/.github/workflows/release-plz.yml +++ b/.github/workflows/release-plz.yml @@ -88,9 +88,12 @@ jobs: *) echo "::error::crates.io returned HTTP $http_status for $crate"; exit 1 ;; esac echo "$crate: local=$local_version registry=$registry_version" + # A crate that has never been published is the worst partial- + # publish case (everything downstream of it is blocked), so + # publish it here rather than skipping: `cargo publish` handles + # first publishes fine. if [[ -z "$registry_version" ]]; then - echo "::warning::$crate not on crates.io yet — first publish must come from a release-plz run" - continue + echo "::notice::$crate not on crates.io yet — publishing for the first time" fi if [[ "$local_version" == "$registry_version" ]]; then continue diff --git a/release-plz.toml b/release-plz.toml index d4d1f33..f601da9 100644 --- a/release-plz.toml +++ b/release-plz.toml @@ -19,7 +19,15 @@ git_release_name = "v{{ version }}" # is a no-op; any whose local version is ahead gets published. Partial # publishes self-heal on the next merge instead of jamming the pipeline. release_always = true -git_tag_enable = true +# Tags are off by default and enabled only for the `vestige` binary crate +# (see the [[package]] override at the bottom). Every crate shares the one +# `v{{ version }}` tag name, so with tagging on for all of them the first +# crate published created the tag and the second failed with "Reference +# already exists", aborting the release after one or two crates (v0.5.0 and +# v0.6.0 both jammed this way). `vestige` publishes last, so the tag — and +# the cargo-dist + Homebrew workflows it triggers — now fires only once the +# whole chain is on crates.io. +git_tag_enable = false # cargo-dist owns the GitHub Release (it builds binaries and attaches them # in the same job that creates the release). release-plz just pushes the tag; # the release.yml workflow takes over from the tag. @@ -51,3 +59,7 @@ commit_parsers = [ { message = "^ci", skip = true }, { message = "^style", skip = true }, ] + +[[package]] +name = "vestige" +git_tag_enable = true