Skip to content

fix: decouple package version from Directory.Build.props#7

Merged
Theauxm merged 1 commit intomainfrom
fix/versioning
Mar 2, 2026
Merged

fix: decouple package version from Directory.Build.props#7
Theauxm merged 1 commit intomainfrom
fix/versioning

Conversation

@Theauxm
Copy link
Copy Markdown
Member

@Theauxm Theauxm commented Mar 2, 2026

Summary

  • Set Directory.Build.props to 99.99.99 (permanent dev version) so local packages always win over nuget.org
  • Semantic Release now writes version to .release-version file instead of updating Directory.Build.props
  • CI extracts version from .release-version and passes to dotnet pack -p:Version=X.Y.Z
  • Pack/push steps only run when a new release is actually created
  • Removed unused @semantic-release/changelog and @semantic-release/git npm packages

This eliminates the need to push version commits back to main, which was blocked by branch protections.

Test plan

  • Verify CI builds pass (no code changes, only config)
  • Merge and verify semantic-release creates a GitHub release with correct version
  • Verify NuGet package is published with the correct version (not 99.99.99)

Set Directory.Build.props to 99.99.99 (permanent dev version) so local
packages always win over nuget.org. Semantic Release now writes the
version to .release-version, and CI passes it to dotnet pack via
-p:Version. This avoids needing to push version commits back to main,
which was blocked by branch protections.

- Remove @semantic-release/changelog and @semantic-release/git plugins
- Repurpose @semantic-release/exec to write .release-version file
- Conditionally pack/push only when a new release is created
- Add .release-version to .gitignore
@Theauxm Theauxm merged commit f842ea8 into main Mar 2, 2026
1 check passed
@traxsharp
Copy link
Copy Markdown

traxsharp Bot commented Mar 2, 2026

This PR is included in version 1.1.1

@Theauxm Theauxm deleted the fix/versioning branch March 6, 2026 19:04
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