diff --git a/azure-pipelines.yml b/azure-pipelines.yml index b9dc4e495..672f1a58e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -36,6 +36,7 @@ jobs: arguments: '-c Release --version-suffix build-$(Build.BuildNumber) -o $(Build.ArtifactStagingDirectory)' - task: DotNetCoreCLI@2 displayName: 'Publish packages' + condition: ne(variables['Build.Reason'], 'PullRequest') inputs: command: 'push' packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg'