Skip to content

Commit

Permalink
Nerdbank.GitVersioning use pathFilter.
Browse files Browse the repository at this point in the history
  • Loading branch information
hcoona committed Aug 17, 2022
1 parent 4fc14cb commit b633bf2
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 22 deletions.
6 changes: 5 additions & 1 deletion Clocks.Net/version.json
Original file line number Diff line number Diff line change
@@ -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
}
15 changes: 12 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
26 changes: 8 additions & 18 deletions version.json
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit b633bf2

Please sign in to comment.