Skip to content

Commit dd07e58

Browse files
committed
Work CD-CI
- Fix condition to pushing to Azure artifacts (was happening on PRs and it shouldn't). - Adjust version configuration. - Bump version to 2.11.0 Signed-off-by: José Simões <[email protected]>
1 parent da99266 commit dd07e58

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ jobs:
149149
packagesToPush: '$(Build.ArtifactStagingDirectory)/*.nupkg'
150150
publishFeedCredentials: 'AzureArtifacts'
151151
continueOnError: true
152-
condition: succeeded()
152+
condition: and( succeeded(), ne(variables['system.pullrequest.isfork'], true) )
153153
displayName: Push NuGet packages to Azure Artifacts
154154

155155
# create or update GitHub release

source/version.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
3-
"version": "2.11",
3+
"version": "2.12.0",
4+
"release": {
5+
"branchName" : "release-v{version}",
6+
"versionIncrement" : "minor",
7+
"firstUnstableTag" : "preview"
8+
},
9+
"assemblyVersion": {
10+
"precision": "revision"
11+
},
412
"nuGetPackageVersion": {
513
"semVer": 2.0
614
},
@@ -11,9 +19,5 @@
1119
"cloudBuild": {
1220
"setVersionVariables": true,
1321
"setAllVariables": true
14-
},
15-
"release": {
16-
"branchName": "release-v{version}",
17-
"firstUnstableTag": "preview"
1822
}
1923
}

0 commit comments

Comments
 (0)