1212 HOMEBREW_NO_INSTALL_CLEANUP : 1
1313 NODE_OPTIONS : " --disable-proto=delete"
1414 VisualStudioVersion : " 17.0"
15+ WindowsTargetPlatformVersion : " 10.0.26100.0"
1516concurrency :
1617 # Ensure single build of a pull request. `trunk` should not be affected.
1718 group : ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || github.run_id }}
@@ -574,7 +575,7 @@ jobs:
574575 yarn build:windows
575576 - name : Generate Visual Studio solution
576577 run : |
577- node ../windows/app.mjs --msbuildprops WindowsTargetPlatformVersion=10.0.26100.0
578+ node ../windows/app.mjs --msbuildprops WindowsTargetPlatformVersion=$env:WindowsTargetPlatformVersion
578579 working-directory : packages/app/example
579580 - name : Test `react-native config`
580581 run : |
@@ -585,10 +586,10 @@ jobs:
585586 uses : ./.github/actions/affected
586587 - name : Install Windows App SDK
587588 if : ${{ steps.affected.outputs.windows != '' }}
588- run : |
589- ../node_modules/react-native-windows/Scripts/rnw-dependencies.ps1 -Install -NoPrompt -Enterprise
590- nuget restore Example.sln
591- working-directory : packages/app/example/windows
589+ uses : ./.github/actions/setup-windows-app-sdk
590+ with :
591+ solution : Example.sln
592+ working-directory : packages/app/example/windows
592593 - name : Build
593594 id : build
594595 if : ${{ steps.affected.outputs.windows != '' }}
@@ -653,17 +654,17 @@ jobs:
653654 working-directory : template-example
654655 - name : Generate Visual Studio solution
655656 run : |
656- yarn install-windows-test-app --msbuildprops WindowsTargetPlatformVersion=10.0.26100.0
657+ yarn install-windows-test-app --msbuildprops WindowsTargetPlatformVersion=$env:WindowsTargetPlatformVersion
657658 working-directory : template-example
658659 - name : Determine whether the Windows app needs to be built
659660 id : affected
660661 uses : ./.github/actions/affected
661662 - name : Install Windows App SDK
662663 if : ${{ steps.affected.outputs.windows != '' }}
663- run : |
664- ../node_modules/react-native-windows/Scripts/rnw-dependencies.ps1 -Install -NoPrompt -Enterprise
665- nuget restore TemplateExample.sln
666- working-directory : template-example/windows
664+ uses : ./.github/actions/setup-windows-app-sdk
665+ with :
666+ solution : TemplateExample.sln
667+ working-directory : template-example/windows
667668 - name : Build
668669 id : build
669670 if : ${{ steps.affected.outputs.windows != '' }}
0 commit comments