React Native Enterprise Framework ships with a ready-to-use GitHub Actions:
which you can include in your GHA workflows to build iOS and Android apps and store native artifacts to reuse across CI jobs and local dev environment through RNEF CLI.
Make sure to include the following workflow permissions for your project:
Settings -> Actions -> General -> Workflow Permissions -> Read and write permissions
This is the recommended base setup for a GitHub Workflow file running our GitHub Actions:
This configuration:
main
branchWhen using GitHub Actions workflows with RNEF, you can optimize your CI/CD pipelines by using paths-ignore
to skip unnecessary workflow runs. This can significantly reduce CI time and costs, especially in large repositories where not all changes require rebuilding the mobile applications.
Add a paths-ignore
section to your workflow's trigger configuration to specify which file patterns should not trigger the workflow:
You'll be asked about this token when cached build is available while running the npx rnef run:
command.
Generate a fine-grained Personal Access Token and set Resource owner to your organization. Ensure the following repository permissions:
Generate GitHub Personal Access Token for downloading cached builds with repo
permissions.