Skip to content

Commit 59956da

Browse files
build: updates versioning configuration
Updates the versioning configuration to align with the new project requirements. This includes: - Changing the version number to 0.1. - Updating the `publicReleaseRefSpec` to include tags with the format vX.Y.Z. - Enabling build number generation in cloud builds. - Configuring NuGet package versioning to use SemVer 2. - Defining a release branch naming scheme. - Setting a fixed length for shortened Git commit IDs. - Adding build metadata to include the commit ID. - Configuring prerelease tagging for feature, bugfix, and release branches.
1 parent 5a3c3b2 commit 59956da

1 file changed

Lines changed: 27 additions & 3 deletions

File tree

version.json

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,34 @@
11
{
2-
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
3-
"version": "1.0",
2+
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/main/src/NerdBank.GitVersioning/version.schema.json",
3+
"version": "0.1",
44
"publicReleaseRefSpec": [
5-
"^refs/tags/v\\d+\\.\\d+\\.\\d+(?:-.*)?$"
5+
"^refs/heads/main$",
6+
"^refs/tags/v\\d+\\.\\d+\\.\\d+$"
67
],
78
"cloudBuild": {
9+
"buildNumber": {
10+
"enabled": true
11+
},
812
"setVersionVariables": true
13+
},
14+
"nugetPackageVersion": {
15+
"semVer": 2
16+
},
17+
"release": {
18+
"branchName": "release/v{version}",
19+
"firstUnstableTag": "rc"
20+
},
21+
"gitCommitIdShortFixedLength": 8,
22+
"versionHeightOffset": 0,
23+
"buildMetadata": {
24+
"commitId": true
25+
},
26+
"prerelease": {
27+
"tag": "alpha",
28+
"branches": {
29+
"feature/": "alpha",
30+
"bugfix/": "alpha",
31+
"release/": "rc"
32+
}
933
}
1034
}

0 commit comments

Comments
 (0)