fix: decouple package version from Directory.Build.props#7
Merged
Conversation
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
|
This PR is included in version 1.1.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Directory.Build.propsto99.99.99(permanent dev version) so local packages always win over nuget.org.release-versionfile instead of updatingDirectory.Build.props.release-versionand passes todotnet pack -p:Version=X.Y.Z@semantic-release/changelogand@semantic-release/gitnpm packagesThis eliminates the need to push version commits back to
main, which was blocked by branch protections.Test plan