Skip to content

Commit e67bc0d

Browse files
Saadnajmiclaude
andcommitted
fix(ci): add yarn resolution to deduplicate react-native-macos
The set-react-version script updates packages/app/package.json but not packages/example-macos/package.json, causing two copies of react-native-macos (0.81.5 from npm + tarball). Add a root-level yarn resolution to force all workspaces to use the local tarball. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c01cdce commit e67bc0d

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/microsoft-react-native-test-app-integration.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,17 @@ jobs:
5353
run: |
5454
node scripts/internal/set-react-version.mts ${{ steps.versions.outputs.react_native_version }} --overrides '{ "react-native-macos": "file:${{ runner.temp }}/react-native-macos.tgz" }'
5555
56+
- name: Force react-native-macos resolution to local tarball
57+
working-directory: react-native-test-app
58+
run: |
59+
node -e "
60+
const fs = require('fs');
61+
const pkg = JSON.parse(fs.readFileSync('package.json', 'utf8'));
62+
pkg.resolutions = pkg.resolutions || {};
63+
pkg.resolutions['react-native-macos'] = 'file:${{ runner.temp }}/react-native-macos.tgz';
64+
fs.writeFileSync('package.json', JSON.stringify(pkg, null, 2) + '\n');
65+
"
66+
5667
- name: Install dependencies in test app
5768
working-directory: react-native-test-app
5869
env:

0 commit comments

Comments
 (0)