Skip to content

Commit c6795c6

Browse files
ci: restore version bumping via craft preReleaseCommand (#5261)
* 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 <VersionPrefix> correctly. Wire it back in via craft's preReleaseCommand, as the warning in the prepare log recommends. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * chore: fix typo (convension -> convention) in bump-version.sh #skip-changelog Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 4a85500 commit c6795c6

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.craft.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
minVersion: 2.26.3
22
changelogPolicy: auto
3+
preReleaseCommand: bash scripts/bump-version.sh
34
targets:
45
- name: nuget
56
- name: github

scripts/bump-version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
set -eux
44

55
# Requires powershell: `brew install powershell`
6-
# craft executes this file by convension, passing the new version as the second argument:
6+
# craft executes this file by convention, passing the new version as the second argument:
77
pwsh ./scripts/bump-version.ps1 $2

0 commit comments

Comments
 (0)