diff --git a/mise.toml b/mise.toml index 2932c0ff56..82f024547d 100644 --- a/mise.toml +++ b/mise.toml @@ -10,7 +10,6 @@ bun = "1.1.42" cargo-binstall = "1.10.17" "cargo:cargo-edit" = "latest" "cargo:cargo-insta" = "latest" -"cargo:cargo-show" = { version = "latest", os = ["linux", "macos"] } "cargo:git-cliff" = "latest" "cargo:toml-cli" = "latest" "cargo:usage-cli" = { version = "latest", os = ["linux", "macos"] } diff --git a/xtasks/release-plz b/xtasks/release-plz index 74ebbc5fd6..f7df657bb0 100755 --- a/xtasks/release-plz +++ b/xtasks/release-plz @@ -4,11 +4,8 @@ set -euxo pipefail git config user.name mise-en-dev git config user.email release@mise.jdx.dev -mise uninstall cargo:cargo-show -cargo install cargo-show - cur_version="$(cargo pkgid mise | cut -d# -f2)" -if ! cargo show mise --json | jq -r '.versions.[].num' | grep -q "^$cur_version$"; then +if ! "cargo info mise | grep 'version:' | head -n1 | awk '{print \$2}'" | grep -q "^$cur_version$"; then echo "Releasing $cur_version" cargo publish changelog="$(git cliff --tag "v$cur_version" --strip all --unreleased)"