Add GitVersion-based release packaging for NuGet artifacts#11
Merged
sharpninja merged 6 commits intomainfrom Mar 18, 2026
Merged
Add GitVersion-based release packaging for NuGet artifacts#11sharpninja merged 6 commits intomainfrom
sharpninja merged 6 commits intomainfrom
Conversation
Co-authored-by: sharpninja <16146732+sharpninja@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add GitVersion to generate semver for nuget packages
Add GitVersion-based release packaging for NuGet artifacts
Mar 17, 2026
sharpninja
approved these changes
Mar 17, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR introduces GitVersion-driven semantic versioning for the repo’s NuGet artifacts and extends the CI workflow so v* tag builds publish packages to both GitHub Releases and GitHub Packages.
Changes:
- Add a repo-local GitVersion tool manifest and
GitVersion.ymlfor SemVer calculation. - Update the CI workflow to compute a single version per run, pack with that version, and publish on version tags.
- Add GitBook documentation for local version calculation and tagged release publishing, and link it from the docs index.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| dotnet-tools.json | Adds GitVersion.Tool to the repo’s .NET tool manifest. |
| GitVersion.yml | Defines GitVersion configuration (branch/tag handling and increments). |
| .github/workflows/build.yml | Fetches full history, computes SemVer, uses it for packing, and publishes on tags. |
| docs/releases-and-packaging.md | Documents local GitVersion usage and tag-based publishing behavior. |
| docs/README.md | Adds link to the new releases/packaging page. |
| docs/SUMMARY.md | Adds the new page to GitBook navigation. |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: sharpninja <16146732+sharpninja@users.noreply.github.com>
Co-authored-by: sharpninja <16146732+sharpninja@users.noreply.github.com>
sharpninja
approved these changes
Mar 18, 2026
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.
The repository was packing NuGet artifacts in CI, but versions were still manually derived and the packages stopped at workflow artifacts. This change moves package versioning to GitVersion-generated SemVer and wires tagged builds to publish the resulting packages into both GitHub Releases and the repository NuGet feed.
Semantic versioning
GitVersion.yml.PackageVersion.Workflow release publishing
semVeronce per runBitNetSharp.CoreandBitNetSharp.Apppackagesv*tag handling so tagged builds:.nupkgfiles to the corresponding GitHub releaseDocumentation
docs/README.mdanddocs/SUMMARY.md.Packaging flow example
📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.