From 73ebaf10d0da4ed2468f196fa719ea9e1f88d7a5 Mon Sep 17 00:00:00 2001 From: Jerome Laban Date: Tue, 28 May 2024 13:25:10 -0400 Subject: [PATCH] chore: Adjust versioning --- gitversion.yml | 57 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 56 insertions(+), 1 deletion(-) diff --git a/gitversion.yml b/gitversion.yml index 733bd80..dd976c3 100644 --- a/gitversion.yml +++ b/gitversion.yml @@ -1,2 +1,57 @@ +assembly-versioning-scheme: MajorMinorPatch mode: Mainline -increment: patch \ No newline at end of file + +branches: + main: + mode: ContinuousDeployment + regex: main + tag: dev + increment: Minor + is-source-branch-for: ['beta', 'stable'] + + pull-request: + regex: ^(pull|pull\-requests|pr)[/-] + mode: ContinuousDeployment + tag: 'PullRequest' + tag-number-pattern: '[/-](?\d+)[-/]' + increment: Inherit + + beta: + mode: ContinuousDeployment + regex: ^release/beta/.* + tag: beta + increment: none + source-branches: ['main'] + + stable: + regex: ^release/stable/.* + tag: '' + increment: Patch + source-branches: ['main','beta'] + is-mainline: true + + dev: + mode: ContinuousDeployment + regex: ^dev/.*?/(.*?) + tag: dev.{BranchName} + source-branches: ['main', 'stable', 'projects', 'feature'] + increment: none + + projects: + tag: proj-{BranchName} + regex: ^projects/(.*?) + source-branches: ['main'] + increment: none + + feature: + tag: feature.{BranchName} + regex: ^feature/(.*?) + source-branches: ['main'] + increment: none + + release: + # disable default release branch + regex: ignore + +ignore: + sha: []