Skip to content

Commit 8bae64e

Browse files
committed
ci(windows): manually restore NuGet packages before building
1 parent c7ac95d commit 8bae64e

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,11 @@ jobs:
570570
- name: Determine whether the Windows app needs to be built
571571
id: affected
572572
uses: ./.github/actions/affected
573+
- name: Restore NuGet packages
574+
if: ${{ steps.affected.outputs.windows != '' }}
575+
run: |
576+
nuget restore
577+
working-directory: packages/example-windows/windows
573578
- name: Build
574579
id: build
575580
if: ${{ steps.affected.outputs.windows != '' }}

packages/example-windows/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"build:android": "rnx-cli bundle --platform android",
88
"build:ios": "rnx-cli bundle --platform ios",
99
"build:windows": "rnx-cli bundle --platform windows",
10-
"ci:windows": "rnx-cli run-windows --logging --no-packager --no-launch --no-deploy --msbuildprops UseBundle=false --no-telemetry",
10+
"ci:windows": "rnx-cli run-windows --logging --no-packager --no-launch --no-deploy --msbuildprops RestorePackagesConfig=false,UseBundle=false --no-telemetry",
1111
"clean": "yarn workspace react-native-test-app clean",
1212
"ios": "rnx-cli run --platform ios",
1313
"set-react-version": "yarn workspace react-native-test-app set-react-version",

0 commit comments

Comments
 (0)