Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbot authored Feb 12, 2025
1 parent 81faf7c commit b597545
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .ado/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ extends:

- template: .ado/templates/run-compliance-prebuild.yml@self

- script: if not exist %USERPROFILE%\AppData\Roaming\npm (mkdir %USERPROFILE%\AppData\Roaming\npm)
displayName: Fix missing npm config

- pwsh: |
npx beachball check --verbose 2>&1 | Tee-Object -Variable beachballOutput
$beachballErrors = $beachballOutput | Where-Object { $_ -match "ERROR: *"}
Expand All @@ -193,13 +196,13 @@ extends:
- template: .ado/templates/configure-git.yml@self

- script: |
echo ##vso[task.setvariable variable=SkipNpmPublishArgs]--no-publish
displayName: Enable No-Publish
echo "##vso[task.setvariable variable=SkipNpmPublishArgs]--no-publish"
displayName: Enable No-Publish (npm)
condition: ${{ parameters.skipNpmPublish }}
- script: |
echo ##vso[task.setvariable variable=SkipGitPushPublishArgs]--no-push
displayName: Enable No-Publish
echo "##vso[task.setvariable variable=SkipGitPushPublishArgs]--no-push"
displayName: Enable No-Publish (git)
condition: ${{ parameters.skipGitPush }}
- script: npx beachball publish $(SkipNpmPublishArgs) $(SkipGitPushPublishArgs) --branch origin/$(Build.SourceBranchName) -n $(npmAuthToken) -yes --bump-deps --verbose --access public --message "applying package updates ***NO_CI***"
Expand Down

0 comments on commit b597545

Please sign in to comment.