From 51bffb80e55fab17aac567511d99f040fb189f5b Mon Sep 17 00:00:00 2001 From: Taras Mankovski <74687+taras@users.noreply.github.com> Date: Sat, 18 Jul 2026 20:53:32 -0400 Subject: [PATCH] release: the draft banner names the actual next version to bump to --- .github/workflows/draft-release.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/draft-release.yml b/.github/workflows/draft-release.yml index c96a7b4..3963e24 100644 --- a/.github/workflows/draft-release.yml +++ b/.github/workflows/draft-release.yml @@ -40,12 +40,14 @@ jobs: gh api "repos/${{ github.repository }}/releases/$DRAFT_ID" --jq .body > /tmp/body.md sed '//,//d' /tmp/body.md > /tmp/clean.md if git ls-remote --exit-code origin "refs/tags/v$VERSION" >/dev/null 2>&1; then + IFS=. read -r MAJ MIN PAT <<< "$VERSION" + NEXT="$MAJ.$MIN.$(( ${PAT%%[!0-9]*} + 1 ))" { echo "" echo "> [!WARNING]" echo "> The manifests still declare \`$VERSION\`, which is already released." - echo "> Run \`deno task bump \` and merge the bump before publishing" - echo "> this draft (release spec §2)." + echo "> Run \`deno task bump $NEXT\` (or the next minor/major) and merge the" + echo "> bump before publishing this draft (release spec §2)." echo "" echo cat /tmp/clean.md