diff --git a/eng/common/templates/stages/publish.yml b/eng/common/templates/stages/publish.yml index e1a3ec9ca..0801741a4 100644 --- a/eng/common/templates/stages/publish.yml +++ b/eng/common/templates/stages/publish.yml @@ -20,7 +20,9 @@ parameters: stages: - ${{ if eq(parameters.isInternalServicingValidation, 'false') }}: - stage: Publish - ${{ if not(parameters.isStandalonePublish) }}: + ${{ if eq(parameters.isStandalonePublish, true) }}: + dependsOn: [] + ${{ else }}: ${{ if and(eq(variables['System.TeamProject'], parameters.internalProjectName), ne(variables['Build.Reason'], 'PullRequest')) }}: dependsOn: Test ${{ else }}: