From ece86190fddd013eb726a7ca0c2e770318f7974b Mon Sep 17 00:00:00 2001 From: "Dmitrii Bobreshev (Akvelon INC)" Date: Tue, 12 Sep 2023 14:41:25 +0200 Subject: [PATCH 1/2] 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..ae01519ee 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) From 588f44e64ea92f26a91a54e425899ad6c85da8f2 Mon Sep 17 00:00:00 2001 From: "Dmitrii Bobreshev (Akvelon INC)" Date: Tue, 12 Sep 2023 14:55:51 +0200 Subject: [PATCH 2/2] Allow to publish changes from release branch --- azure-pipelines.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index ae01519ee..781e472ac 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -52,9 +52,9 @@ jobs: succeeded(), in(variables['build.reason'], 'IndividualCI', 'BatchedCI', 'Manual'), or( - in(variables['build.sourcebranch'], 'refs/heads/master')), - startsWith(variables['build.sourcebranch'], 'refs/heads/releases')) - ) + in(variables['build.sourcebranch'], 'refs/heads/master'), + startsWith(variables['build.sourcebranch'], 'refs/heads/releases') + )) env: NPM_TOKEN: $(npm-automation.token)