diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 3e927fdaa..5a2d2450c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -79,7 +79,7 @@ jobs: npm publish || true # Ignore publish failures, usually will happen because package already exists displayName: (azure-pipelines-task-lib) npm publish workingDirectory: node - condition: and(succeeded(), in(variables['build.reason'], 'IndividualCI', 'BatchedCI', 'Manual'), in(variables['build.sourcebranchname'], 'master', 'releases/4.x')) + condition: and(succeeded(), in(variables['build.reason'], 'IndividualCI', 'BatchedCI', 'Manual'), in(variables['build.sourcebranch'], 'refs/heads/master', 'refs/heads/releases/4.x')) env: NPM_TOKEN: $(npmPublishToken)