Skip to content

Commit

Permalink
Update to publish pipeline (#13955)
Browse files Browse the repository at this point in the history
Co-authored-by: React-Native-Windows Bot <53619745+rnbot@users.noreply.github.com>
  • Loading branch information
acoates-ms and rnbot authored Oct 10, 2024
1 parent 9614bfe commit 34a31dc
Showing 1 changed file with 28 additions and 14 deletions.
42 changes: 28 additions & 14 deletions .ado/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ extends:
stages:
- stage: RNWPublish
jobs:
- job: RnwNpmPublish
displayName: React-Native-Windows Npm Build Rev Publish
- job: RnwPublishPrep
displayName: React-Native-Windows Publish Prep
pool: ${{ parameters.AgentPool.Medium }}
timeoutInMinutes: 120
cancelTimeoutInMinutes: 5
Expand All @@ -190,6 +190,31 @@ 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: *"}
$beachballErrors | ForEach { Write-Host "##vso[task.logissue type=error]$_" }
if ( $beachballErrors.Count -gt 0) { throw "Beachball check found $($beachballErrors.Count) errors." }
displayName: Beachball Check
condition: ${{ parameters.performBeachballCheck }}
- job: RnwNpmPublish
displayName: React-Native-Windows Npm Build Rev Publish
dependsOn: RnwPublishPrep
pool:
name: Azure-Pipelines-1ESPT-ExDShared
image: windows-latest
os: windows
timeoutInMinutes: 120
cancelTimeoutInMinutes: 5
steps:
- template: .ado/templates/prepare-js-env.yml@self
parameters:
agentImage: HostedImage

- template: .ado/templates/configure-git.yml@self

- script: |
Expand All @@ -202,17 +227,6 @@ extends:
displayName: Enable No-Publish
condition: ${{ parameters.skipGitPush }}
- 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: *"}
$beachballErrors | ForEach { Write-Host "##vso[task.logissue type=error]$_" }
if ( $beachballErrors.Count -gt 0) { throw "Beachball check found $($beachballErrors.Count) errors." }
displayName: Beachball Check
condition: ${{ parameters.performBeachballCheck }}
- script: npx beachball publish $(SkipNpmPublishArgs) $(SkipGitPushPublishArgs) --branch origin/$(Build.SourceBranchName) -n $(npmAuthToken) -yes --bump-deps --verbose --access public --message "applying package updates ***NO_CI***"
displayName: Beachball Publish

Expand Down Expand Up @@ -532,4 +546,4 @@ extends:
- output: pipelineArtifact
displayName: 'Publish final nuget artifacts'
targetPath: $(System.DefaultWorkingDirectory)\NugetRootFinal
artifactName: "ReactWindows-final-nuget"
artifactName: "ReactWindows-final-nuget"

0 comments on commit 34a31dc

Please sign in to comment.