From 20e3a6e27e2b70ae5b7e4a5b8d1a61d3de191fa9 Mon Sep 17 00:00:00 2001 From: James Crosswell Date: Thu, 28 May 2026 10:46:17 +1200 Subject: [PATCH 1/2] ci: restore version bumping via preReleaseCommand #skip-changelog Craft 2.26.6's built-in nuget auto-bumper looks for the `dotnet-setversion` CLI and, when not found, falls back to a "manual edit" heuristic that does not recognize `Directory.Build.props`. It downgrades the failure to a warn and lets prepare continue, so the `release: 6.6.0` commit only updated CHANGELOG.md and the resulting nupkg files were named `*.6.5.0.nupkg`. The repo's own scripts/bump-version.sh already rewrites correctly. Wire it back in via craft's preReleaseCommand, as the warning in the prepare log recommends. Co-Authored-By: Claude Opus 4.7 --- .craft.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.craft.yml b/.craft.yml index de2d5bfb2f..535f6ad22c 100644 --- a/.craft.yml +++ b/.craft.yml @@ -1,5 +1,6 @@ minVersion: 2.26.3 changelogPolicy: auto +preReleaseCommand: bash scripts/bump-version.sh targets: - name: nuget - name: github From 4f4a0fe1abe568d06159ea48c2958eee5f608dbb Mon Sep 17 00:00:00 2001 From: James Crosswell Date: Thu, 28 May 2026 10:47:56 +1200 Subject: [PATCH 2/2] chore: fix typo (convension -> convention) in bump-version.sh #skip-changelog Co-Authored-By: Claude Opus 4.7 --- scripts/bump-version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/bump-version.sh b/scripts/bump-version.sh index 6e70edc627..9e249dd72b 100644 --- a/scripts/bump-version.sh +++ b/scripts/bump-version.sh @@ -3,5 +3,5 @@ set -eux # Requires powershell: `brew install powershell` -# craft executes this file by convension, passing the new version as the second argument: +# craft executes this file by convention, passing the new version as the second argument: pwsh ./scripts/bump-version.ps1 $2