Skip to content

fix(build): honor MinVer floor for release bumps#262

Merged
ChrisPulman merged 1 commit into
mainfrom
CP_fix-minver-major-release-floor
Jul 10, 2026
Merged

fix(build): honor MinVer floor for release bumps#262
ChrisPulman merged 1 commit into
mainfrom
CP_fix-minver-major-release-floor

Conversation

@ChrisPulman

Copy link
Copy Markdown
Member

What kind of change does this PR introduce?

Build/release workflow fix for MinVer version stamping.

What is the new behavior?

BuildDeploy.yml computes release versions from the MinVer 3.2 floor when no matching vX.Y.Z RTM tag exists. With a Major release selected in that migration state, the workflow resolves version=4.0.0 and tag=v4.0.0, then passes that exact version through MinVer, build, and pack.

What is the current behavior?

The workflow used reactiveui/actions-common/.github/actions/compute-version-and-tag, which seeds from 0.0.0 when no matching vX.Y.Z RTM tag is reachable. That value was passed to MinVer as version-override, bypassing MinVerMinimumMajorMinor=3.2 and causing Major to build as 1.0.0.

Checklist

  • Tests have been added or updated (for bug fixes / features)
  • Docs have been added or updated (for bug fixes / features)
  • Changes target the main branch
  • PR title follows Conventional Commits

Additional information

Validation:

  • Simulated the workflow release calculation with no matching v* RTM tags: version=4.0.0, tag=v4.0.0, prerelease=false.
  • Packed src/Extensions.Hosting.SingleInstance/Extensions.Hosting.SingleInstance.csproj with MinVerVersionOverride=4.0.0 and verified the .nuspec version is 4.0.0.
  • Ran the workflow-shaped solution pack command with MinVerVersionOverride=4.0.0; it produced 47 .nupkg/symbol packages stamped 4.0.0.

Note: solution pack still emits existing NU5104 warnings for stable packages depending on preview dependencies; that is separate from the MinVer release floor fix.

Versioning:

- Replace the floor-blind release bump action with a floor-aware release version calculation seeded from the MinVer 3.2 floor until a newer vX.Y.Z tag exists.

- Pass the resolved MinVerVersionOverride through MinVer, build, and pack so a Major release from the 3.2 baseline stamps 4.0.0.

Validation:

- Verified the no-v-tag Major calculation resolves version=4.0.0 and tag=v4.0.0.

- Verified solution-level dotnet pack with MinVerVersionOverride=4.0.0 produces 4.0.0 packages.
@ChrisPulman ChrisPulman merged commit b9d0151 into main Jul 10, 2026
1 check passed
@ChrisPulman ChrisPulman deleted the CP_fix-minver-major-release-floor branch July 10, 2026 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant