Skip to content

Commit 28dbf90

Browse files
authored
fix: upgrade to GitVersion 6.x with gittools/actions v4 (#104)
- 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
1 parent c1a587f commit 28dbf90

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,15 +154,15 @@ jobs:
154154
- name: Install GitVersion
155155
uses: gittools/actions/gitversion/setup@v4
156156
with:
157-
versionSpec: '5.x'
157+
versionSpec: '6.x'
158158

159159
- name: Run GitVersion
160160
id: gitversion
161161
uses: gittools/actions/gitversion/execute@v4
162162

163163
- name: Set version env vars
164164
run: |
165-
echo "PACKAGE_VERSION=${{ steps.gitversion.outputs.nuGetVersionV2 }}" >> $GITHUB_ENV
165+
echo "PACKAGE_VERSION=${{ steps.gitversion.outputs.semVer }}" >> $GITHUB_ENV
166166
echo "ASSEMBLY_VERSION=${{ steps.gitversion.outputs.assemblySemVer }}" >> $GITHUB_ENV
167167
echo "FILE_VERSION=${{ steps.gitversion.outputs.assemblySemFileVer }}" >> $GITHUB_ENV
168168

GitVersion.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
mode: MainLine
1+
workflow: GitHubFlow/v1
22
tag-prefix: 'v'
33
commit-message-incrementing: Enabled
44

55
major-version-bump-message: '(?m)^[a-z]+(?:\([\w\s\-,/\\]+\))?!:|(?m)^\s*BREAKING CHANGE:'
66
minor-version-bump-message: '(?m)^feat(?:\([\w\s\-,/\\]+\))?:'
7-
patch-version-bump-message: '(?m)^(?:fix|perf)(?:\([\w\s\-,/\\]+\))?:'
7+
patch-version-bump-message: '(?m)^(?:fix|perf)(?:\([\w\s\-,/\\]+\))?:'

0 commit comments

Comments
 (0)