From 54da14d271b3c9550bedfe264745d256dd625046 Mon Sep 17 00:00:00 2001 From: Dmitrii Bobreshev <106314398+DmitriiBobreshev@users.noreply.github.com> Date: Wed, 13 Sep 2023 03:10:25 -0700 Subject: [PATCH] Allow to publish changes from release branch (#969) * Allow to publish changes from release branch * Allow to publish changes from release branch --- azure-pipelines.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 13dbb8179..781e472ac 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -48,7 +48,13 @@ jobs: npm publish || true # Ignore publish failures, usually will happen because package already exists displayName: npm publish workingDirectory: node/_build - condition: and(succeeded(), in(variables['build.reason'], 'IndividualCI', 'BatchedCI', 'Manual'), in(variables['build.sourcebranch'], 'refs/heads/master')) + condition: and( + succeeded(), + in(variables['build.reason'], 'IndividualCI', 'BatchedCI', 'Manual'), + or( + in(variables['build.sourcebranch'], 'refs/heads/master'), + startsWith(variables['build.sourcebranch'], 'refs/heads/releases') + )) env: NPM_TOKEN: $(npm-automation.token)