Skip to content

builder - cache rn project#254

Open
radoslawrolka wants to merge 4 commits intomainfrom
rolkrado/cache-rn-proj-builder
Open

builder - cache rn project#254
radoslawrolka wants to merge 4 commits intomainfrom
rolkrado/cache-rn-proj-builder

Conversation

@radoslawrolka
Copy link
Collaborator

@radoslawrolka radoslawrolka commented Feb 11, 2026

📝 Description

Create caching RN project in builder for each rn_version and OS.

🎯 Type of Change

  • ⚡ Performance improvement

🧪 Testing

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a React Native template project cache keyed by RN version and OS to speed up the builder workflows, and updates the builder setup logic to reuse an existing RN project directory when present.

Changes:

  • Update setupReactNativeProject() to reuse an existing ${workDir}/rnrepo_build_app directory instead of erroring.
  • Add actions/cache restore + “create on cache miss” steps to iOS/Android build workflows for ${{ runner.temp }}/rnrepo_build_app.
  • Add a minimal validation check to ensure the cached directory looks like an RN project (package.json exists).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

File Description
packages/builder/build-utils.ts Reuses an existing RN project directory to enable caching rather than always re-initializing.
.github/workflows/build-library-ios.yml Restores/caches the RN project directory and creates it only on cache miss.
.github/workflows/build-library-android.yml Same as iOS workflow: restores/caches the RN project directory and creates it only on cache miss.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants