Skip to content

Repair wp/5.6 branch Actions: Fetch react-native-screens as a pre-built tarball - #84968

Open
desrosj wants to merge 1 commit into
fix-actions-5.6/ignore-browserslist-old-datafrom
fix-actions-5.6/fix-react-native-screens-git-dependency
Open

desrosj wants to merge 1 commit into
fix-actions-5.6/ignore-browserslist-old-datafrom
fix-actions-5.6/fix-react-native-screens-git-dependency

Conversation

@desrosj

@desrosj desrosj commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Part of #82937.

What?

Changes react-native-screens in packages/react-native-editor/package.json from a git dependency (git+https://github.com/wordpress-mobile/react-native-screens.git#b3d907bda2695743f35fd874261dcd27e0912eca) to a pre-built tarball (https://raw.githubusercontent.com/wordpress-mobile/react-native-screens/a25c3d81e0838d57c9f9ac77ef726751e329bad1/react-native-screens-2.9.0-wp-1.tgz), with the two matching package-lock.json entries.

Why?

npm ci fails in "Npm install and build" on every job that installs dependencies, so nothing after it runs. npm has to clone a git dependency and run its prepare script (bob build), which runs tsc. The fork pins typescript ^3.8.3 (3.9.x) but not @types/node, so tsc picks up the current @types/node, whose syntax needs TypeScript 4.0–4.5, and fails with TS1005/TS1109/TS1110 errors.

A tarball ships with lib/ already built, so prepare never runs. wp/5.9 already uses this exact tarball.

How?

The tarball is built from wordpress-mobile/react-native-screens@a25c3d8, a descendant of the currently pinned wordpress-mobile/react-native-screens@b3d907b. Between the two commits src/ is byte-identical; only Android/Gradle tooling (android/build.gradle, the Gradle wrapper, RNScreens.podspec) and the version string (2.9.0 → 2.9.0-wp-1) change. So this is a packaging change, not a behavior change.

The tarball's SHA-512 matches the integrity in wp/5.9's package-lock.json (sha512-6u4uqEweGAr/nSEM5FOrQ3TH1YrqGHlystnCu3LSJnvhdbfunxPQMUIRHyvWjukPamHPNzqxSJDzdUTI3D2/CA==), and it contains built lib/commonjs, lib/module and lib/typescript. The other git dependencies with a TypeScript prepare build (react-native-safe-area-context, react-native-svg) don't hit the same failure.

Use of AI Tools

This PR was created by Claude Code under my supervision. All code should be treated as AI-produced and not yet reviewed by a human until this PR is marked Ready for Review.

@desrosj desrosj added the [Type] Build Tooling Issues or PRs related to build tooling label Oct 16, 2026
@desrosj desrosj self-assigned this Oct 16, 2026
@coderabbitai

coderabbitai Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b14f726f-6389-4aa0-a3ea-b5de5c5cb294

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: desrosj <desrosj@git.wordpress.org>
Co-authored-by: ntsekouras <ntsekouras@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@ntsekouras ntsekouras left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks! npm ci now passes in every job, so JavaScript goes green. All, Compressed Size, Admin 1-4 and PHP pass further up the stack.

@desrosj
desrosj force-pushed the fix-actions-5.6/fix-react-native-screens-git-dependency branch from 4ad5a72 to 35d17a4 Compare October 23, 2026 14:12

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Build Tooling Issues or PRs related to build tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants