Skip to content

Commit c25607c

Browse files
authored
ci: switch branch before publishing artifacts (#2317)
1 parent 4eb3ae1 commit c25607c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: .ado/templates/npm-publish.yml

+2
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ steps:
1212
displayName: Verify release config
1313
1414
- script: |
15+
echo Target branch: $(System.PullRequest.TargetBranch)
1516
yarn nx release --dry-run --verbose
1617
displayName: Version and publish packages (dry run)
1718
condition: and(succeeded(), ne(variables['publish_react_native_macos'], '1'))
1819
1920
- script: |
21+
git switch $(Build.SourceBranchName)
2022
yarn nx release --yes --verbose
2123
env:
2224
GITHUB_TOKEN: $(githubAuthToken)

0 commit comments

Comments
 (0)