Skip to content

Commit 16ae2f6

Browse files
tido64Saadnajmi
authored andcommitted
ci: switch branch before publishing artifacts (microsoft#2317)
1 parent 43f1a43 commit 16ae2f6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.ado/templates/npm-publish-steps.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ steps:
1414
displayName: Verify release config
1515
1616
- script: |
17+
echo Target branch: $(System.PullRequest.TargetBranch)
1718
yarn nx release --dry-run --verbose
1819
displayName: Version and publish packages (dry run)
1920
condition: and(succeeded(), ne(variables['publish_react_native_macos'], '1'))
2021
2122
- script: |
23+
git switch $(Build.SourceBranchName)
2224
yarn nx release --yes --verbose
2325
env:
2426
GITHUB_TOKEN: $(githubAuthToken)

0 commit comments

Comments
 (0)