Skip to content

ci(mobile): symlink react-native CLI for CodePush OTA bundling#14387

Merged
raymondjacobson merged 1 commit into
mainfrom
fix/mobile-ota-react-native-bin-path
May 22, 2026
Merged

ci(mobile): symlink react-native CLI for CodePush OTA bundling#14387
raymondjacobson merged 1 commit into
mainfrom
fix/mobile-ota-react-native-bin-path

Conversation

@raymondjacobson
Copy link
Copy Markdown
Member

Summary

  • Fixes Mobile OTA Release (CodePush) jobs failing with node_modules/.bin/react-native: not found (exit 127). Example: run 26308703765.
  • After #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 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

After #14365 the react-native dep is hoisted 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 hardcodes
the relative path `node_modules/.bin/react-native` (cwd = packages/mobile)
when running `react-native bundle`, which fails with exit 127.

Symlink the hoisted bin into packages/mobile/node_modules/.bin in both
OTA jobs before invoking code-push.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 22, 2026

⚠️ No Changeset found

Latest commit: a414693

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@raymondjacobson raymondjacobson merged commit 3080531 into main May 22, 2026
3 checks passed
@raymondjacobson raymondjacobson deleted the fix/mobile-ota-react-native-bin-path branch May 22, 2026 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant