Skip to content

Commit

Permalink
ci: switch branch before publishing artifacts (#2317)
Browse files Browse the repository at this point in the history
  • Loading branch information
tido64 authored Dec 6, 2024
1 parent 4eb3ae1 commit c25607c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .ado/templates/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ steps:
displayName: Verify release config
- script: |
echo Target branch: $(System.PullRequest.TargetBranch)
yarn nx release --dry-run --verbose
displayName: Version and publish packages (dry run)
condition: and(succeeded(), ne(variables['publish_react_native_macos'], '1'))
- script: |
git switch $(Build.SourceBranchName)
yarn nx release --yes --verbose
env:
GITHUB_TOKEN: $(githubAuthToken)
Expand Down

0 comments on commit c25607c

Please sign in to comment.