Speed up the publish pipeline#15785
Merged
vmoroz merged 3 commits intomicrosoft:mainfrom Mar 16, 2026
Merged
Conversation
Contributor
|
Enable /MP multi-threaded compilation via CIBuildOptimizations.props: |
Member
Author
No, I did not observe any such issues. Are they specific to test projects or projects based on RNW? |
acoates-ms
approved these changes
Mar 16, 2026
Saadnajmi
approved these changes
Mar 16, 2026
Contributor
Projects based on RNW |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Type of Change
Why
The publish pipeline took ~2h 13m. This PR restructures it to run faster and sign all binaries correctly.
Key motivations:
RnwPublishPrepgate job, test project compilation, full git clones, and redundant PREfast analysisreact-native-win32.dll,Microsoft.ReactNative.Projection.dll) were never code-signedWhat
Pipeline restructure:
RnwPublishPrepgate job with lightweightSetVersionVarsjob (~5m vs ~18m)RnwNpmPack(no longer depends on prep job)Lintingjob as parallel quality gateBuild optimization:
.slnfsolution filters excluding test projects from publish buildsfeatureFlags.autoEnablePREfastWithNewRuleset: false/MPmulti-threaded compilation viaCIBuildOptimizations.propsnuget-restore-task.js)fetchDepth: 1) for all jobsCode signing:
react-native-win32.dllin Desktop build jobs (was never signed)Microsoft.ReactNative.Projection.dllin Universal build jobs (was never signed)esrp-codesign-binaries.ymlandesrp-codesign-nuget.ymltemplatesprep-and-pack-single.ymlandprep-and-pack-nuget.ymlEnableCodesignvariable and-stablebranch checks)Release pipeline:
IndexSources: false(SourceLink already embedded)Cleanup:
FailCGOnAlertvariable (only used by removed Component Governance calls)performBeachballCheckparameterEsrpCodeSigning@5→@6,EsrpRelease@10→@11branch-lifecycle-policy.mdScreenshots
N/A — pipeline changes only.
Testing
user/vmorozov/1es-pt-migration-publishbranchChangelog
Should this change be included in the release notes: no
Internal pipeline optimization — no user-facing changes.
Microsoft Reviewers: Open in CodeFlow