Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[0.76] Update to publish pipeline #13955

Merged
merged 1 commit into from
Oct 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
Loading