Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 31 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,36 @@ env:
INCLUDE_SYMBOLS: true

jobs:
release-version:
if: github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
with:
fetch-depth: 0

- name: Setup .NET
uses: actions/setup-dotnet@v6
with:
dotnet-version: 10.0.x

- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v5
with:
versionSpec: '7.0.x'

- name: Run GitVersion
id: gitversion
uses: gittools/actions/gitversion/execute@v5

- name: Verify release version outputs
env:
PACKAGE_VERSION: ${{ steps.gitversion.outputs.semVer }}
ASSEMBLY_VERSION: ${{ steps.gitversion.outputs.assemblySemVer }}
FILE_VERSION: ${{ steps.gitversion.outputs.assemblySemFileVer }}
run: test -n "$PACKAGE_VERSION" && test -n "$ASSEMBLY_VERSION" && test -n "$FILE_VERSION"

pr-checks:
if: github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
Expand Down Expand Up @@ -306,7 +336,7 @@ jobs:
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v5
with:
versionSpec: '6.x'
versionSpec: '7.0.x'

- name: Run GitVersion
id: gitversion
Expand Down
19 changes: 9 additions & 10 deletions GitVersion.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
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\-,/\\]+\))?:'

branches:
main:
mode: ContinuousDeployment
calculation:
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\-,/\\]+\))?:'
branches:
main:
mode: ContinuousDeployment
Loading