Skip to content

Commit d1f1244

Browse files
authored
fix(windows): use proper NuGet feed for canaries (#1927)
1 parent 4b39fbb commit d1f1244

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -598,15 +598,6 @@ jobs:
598598
- name: Determine whether the Windows app needs to be built
599599
id: affected
600600
uses: ./.github/actions/affected
601-
- name: Set up NuGet sources
602-
# Temporarily disabled since builds using NuGet artifacts randomly fail
603-
# with architecture mismatch error:
604-
# https://github.com/microsoft/react-native-test-app/issues/1879
605-
if: false # ${{ steps.affected.outputs.windows != '' && github.event_name == 'schedule' }}
606-
run: |
607-
nuget sources Add -Name react-native-windows -Source https://pkgs.dev.azure.com/ms/react-native/_packaging/react-native-public/nuget/v3/index.json -ConfigFile NuGet.Config
608-
cp NuGet.Config ../node_modules/.generated/windows/ReactTestApp
609-
working-directory: example/windows
610601
- name: Build
611602
if: ${{ steps.affected.outputs.windows != '' }}
612603
run: |

windows/test-app.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,9 @@ export function generateSolution(destPath, options, fs = nodefs) {
311311
copyTasks.push(
312312
writeTextFile(
313313
nugetConfigDestPath,
314-
mustache.render(readTextFile(nugetConfigPath, fs), {}),
314+
mustache.render(readTextFile(nugetConfigPath, fs), {
315+
nuGetADOFeed: info.version.startsWith("0.0.0-"),
316+
}),
315317
fs.promises
316318
)
317319
);

0 commit comments

Comments
 (0)