Commit 3080531
ci(mobile): symlink react-native CLI for CodePush OTA bundling (#14387)
## Summary
- Fixes Mobile OTA Release (CodePush) jobs failing with
`node_modules/.bin/react-native: not found` (exit 127). Example: [run
26308703765](https://github.com/AudiusProject/apps/actions/runs/26308703765/job/77452051457).
- After [#14365](#14365)
regenerated the lockfile, `react-native` (and the bin from
`@react-native-community/cli`) hoists to the monorepo root
`node_modules/`, so `packages/mobile/node_modules/.bin/react-native` no
longer exists.
-
[`@bravemobile/react-native-code-push@12.3.2`](https://app.unpkg.com/@bravemobile/react-native-code-push@12.3.2/files/cli/dist/functions/runReactNativeBundleCommand.js)
hardcodes the relative path `node_modules/.bin/react-native` (cwd is
`packages/mobile`) when invoking `react-native bundle`, so the lookup
fails.
- Add a symlink step before `npx code-push release` in both
`mobile-ota-release` and `mobile-ota-release-production` that points
`packages/mobile/node_modules/.bin/react-native` at the hoisted root
binary.
## Test plan
- [ ] Mobile OTA Release (CodePush, ios) on this PR's merge to `main`
succeeds (or workflow_dispatch w/ `rc` channel).
- [ ] Mobile OTA Release (CodePush, android) on this PR's merge to
`main` succeeds.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>1 parent 802487b commit 3080531
1 file changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
288 | 297 | | |
289 | 298 | | |
290 | 299 | | |
| |||
390 | 399 | | |
391 | 400 | | |
392 | 401 | | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
393 | 411 | | |
394 | 412 | | |
395 | 413 | | |
| |||
0 commit comments