[0.73] Refactor init-windows CI jobs
#12261
Merged
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.
Backport PR #12213 into 0.73
Description
PR #12183 show-horned a new variable and branching path in our existing
cli-init.ymlCI job to support the newreact-native init-windowscommand.However, this makes the pipeline hard to parse and maintain. This PR factors out the new new project path into a separate set of jobs, so we can leave the "old" pipeline as-is, run both for now, but have and easier time updating the new one (and eventually just delete the old one when it's no longer necessary).
Type of Change
Why
To make the new new project CI easier to maintain and drift from the old new project CI.
What
Created a new
cli-init-windows.ymljob, which calls a new "template-focused"react-native-init-windows.ymltemplate, and also factored out code common to both it and toreact-native-init.yml(like starting/stopping verdaccio) into reusable templates.Screenshots
N/A
Testing
Ran the new pipelines
Changelog
Should this change be included in the release notes: no
Microsoft Reviewers: Open in CodeFlow