Skip to content

Commit 54da14d

Browse files
Allow to publish changes from release branch (#969)
* Allow to publish changes from release branch * Allow to publish changes from release branch
1 parent 997f9fe commit 54da14d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

azure-pipelines.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,13 @@ jobs:
4848
npm publish || true # Ignore publish failures, usually will happen because package already exists
4949
displayName: npm publish
5050
workingDirectory: node/_build
51-
condition: and(succeeded(), in(variables['build.reason'], 'IndividualCI', 'BatchedCI', 'Manual'), in(variables['build.sourcebranch'], 'refs/heads/master'))
51+
condition: and(
52+
succeeded(),
53+
in(variables['build.reason'], 'IndividualCI', 'BatchedCI', 'Manual'),
54+
or(
55+
in(variables['build.sourcebranch'], 'refs/heads/master'),
56+
startsWith(variables['build.sourcebranch'], 'refs/heads/releases')
57+
))
5258
env:
5359
NPM_TOKEN: $(npm-automation.token)
5460

0 commit comments

Comments
 (0)