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\-,/\\]+\))?:'