A modern, high-performance lexical analysis and parsing system with comprehensive PCRE2 support and CognitiveGraph integration
The release version was stuck on 1.0.1 and not incrementing with new commits to the main branch. This prevented:
The GitVersion.yml configuration file had the next-version field hardcoded to 1.0.1:
mode: Mainline
next-version: 1.0.1 # ← This was preventing GitVersion from auto-calculating versions
GitVersion is designed to automatically calculate versions based on:
v1.0.1)increment: Minor on main branch)By hardcoding next-version: 1.0.1, we prevented GitVersion from incrementing past this base version, even though the repository had the tag v1.0.1 at an older commit and new commits on main.
Removed the next-version field entirely from GitVersion.yml:
mode: Mainline
# next-version removed - GitVersion will auto-calculate from tags
branches:
main:
increment: Minor # Auto-increments minor version
Now GitVersion will:
v1.0.1)Minor) to calculate the next version1.1.0 (or higher) for new commits on mainAfter this PR is merged to main:
increment: Minor)GitVersion automatically manages versioning:
Just merge to main - GitVersion will increment: 1.0.1 → 1.1.0 → 1.2.0 → ...
Create a tag manually when needed:
git tag v2.0.0
git push --tags
Change the increment strategy temporarily in GitVersion.yml:
branches:
main:
increment: Patch # Changes to patch increment
Then merge to main for 1.1.0 → 1.1.1 → 1.1.2 → ...
You can verify the version that will be generated by running:
# Install GitVersion tool
dotnet tool install --global GitVersion.Tool --version 5.*
# Check the version that will be generated
dotnet-gitversion /showvariable SemVer
GitVersion.yml - Removed next-version field to enable auto-versioningPACKAGE-BUILDING.md - Documentation updated to explain automatic versioning.github/workflows/cd.yml - CD pipeline that creates releases.github/workflows/ci.yml - CI pipeline that publishes to GitHub PackagesBoth pipelines are working correctly:
GitVersion will now automatically calculate versions based on tags and commits.