From cde22db375508484fceaee4f0559007947a74223 Mon Sep 17 00:00:00 2001 From: JD Davis Date: Mon, 16 Feb 2026 19:33:30 -0600 Subject: [PATCH] fix: upgrade to GitVersion 6.x with gittools/actions v4 - Update versionSpec from '5.x' to '6.x' (v4 requires >=6.1.0) - Replace nuGetVersionV2 output with semVer (removed in v6) - Migrate GitVersion.yml: mode: MainLine -> workflow: GitHubFlow/v1 --- .github/workflows/ci.yml | 4 ++-- GitVersion.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a6bfa26..1f9e96d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -154,7 +154,7 @@ jobs: - name: Install GitVersion uses: gittools/actions/gitversion/setup@v4 with: - versionSpec: '5.x' + versionSpec: '6.x' - name: Run GitVersion id: gitversion @@ -162,7 +162,7 @@ jobs: - name: Set version env vars run: | - echo "PACKAGE_VERSION=${{ steps.gitversion.outputs.nuGetVersionV2 }}" >> $GITHUB_ENV + echo "PACKAGE_VERSION=${{ steps.gitversion.outputs.semVer }}" >> $GITHUB_ENV echo "ASSEMBLY_VERSION=${{ steps.gitversion.outputs.assemblySemVer }}" >> $GITHUB_ENV echo "FILE_VERSION=${{ steps.gitversion.outputs.assemblySemFileVer }}" >> $GITHUB_ENV diff --git a/GitVersion.yml b/GitVersion.yml index 4630f3d..c6869f1 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -1,7 +1,7 @@ -mode: MainLine +workflow: GitHubFlow/v1 tag-prefix: 'v' commit-message-incrementing: Enabled major-version-bump-message: '(?m)^[a-z]+(?:\([\w\s\-,/\\]+\))?!:|(?m)^\s*BREAKING CHANGE:' minor-version-bump-message: '(?m)^feat(?:\([\w\s\-,/\\]+\))?:' -patch-version-bump-message: '(?m)^(?:fix|perf)(?:\([\w\s\-,/\\]+\))?:' \ No newline at end of file +patch-version-bump-message: '(?m)^(?:fix|perf)(?:\([\w\s\-,/\\]+\))?:'