Skip to content

Commit

Permalink
Allow to publish changes from release branch (#969)
Browse files Browse the repository at this point in the history
* Allow to publish changes from release branch

* Allow to publish changes from release branch
  • Loading branch information
DmitriiBobreshev authored Sep 13, 2023
1 parent 997f9fe commit 54da14d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 54da14d

Please sign in to comment.