diff --git a/Clocks.Net/version.json b/Clocks.Net/version.json index ef04f6fb..a72048e7 100644 --- a/Clocks.Net/version.json +++ b/Clocks.Net/version.json @@ -1,5 +1,9 @@ { "$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json", - "version": "1.4.0", + "version": "1.4.1-beta.{height}", + "pathFilters": ["."], + "publicReleaseRefSpec": [ + "^refs/tags/clock-net/v\\d+\\.\\d+\\.\\d+" + ], "inherit": true } diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c399def3..3ab1c22c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -31,10 +31,19 @@ steps: displayName: "List Git-LFS files" - task: UseDotNet@2 - displayName: 'Use .NET 6.0' + displayName: 'Install DotNet SDK' inputs: - packageType: 'sdk' - version: '6.0.x' + useGlobalJson: true + +- task: DotNetCoreCLI@2 + inputs: + command: custom + custom: tool + arguments: install --tool-path . nbgv + displayName: Install NBGV tool + +- script: nbgv cloud + displayName: Set Version - task: Cache@2 displayName: 'Restore nuget cache' diff --git a/version.json b/version.json index b08786ac..e9694ee9 100644 --- a/version.json +++ b/version.json @@ -1,29 +1,19 @@ { - "$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json", - "version": "1.0", + "$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/main/src/NerdBank.GitVersioning/version.schema.json", + "version": "2.0-beta", + "pathFilters": [ + "^Clocks.Net" + ], "gitCommitIdShortFixedLength": 7, "gitCommitIdShortAutoMinimum": 7, "nugetPackageVersion": { - "semVer": 2 + "semVer": 2 }, - "publicReleaseRefSpec": [ - "^refs/heads/master$", - "^refs/tags/v\\d+\\.\\d+" - ], + "publicReleaseRefSpec": [], "cloudBuild": { - "setVersionVariables": true, "buildNumber": { - "enabled": false, - "includeCommitId": { - "when": "nonPublicReleaseOnly", - "where": "buildMetadata" - } + "enabled": false } }, - "release" : { - "branchName" : "v{version}", - "versionIncrement" : "minor", - "firstUnstableTag" : "alpha" - }, "inherit": false }