CICD-479 · React Native build
Encyclopedia · Mobile, desktop and binary distribution · All snippets
Previous · CICD-478 · Next · CICD-480
1. Where it fits
- Placement React Native CI run step.
- Prerequisites approved toolchains and isolated build/signing runner when credentials are required.
- Platforms local-linux, github-actions, gitea-actions.
2. Copy the snippet
bash
npm ci
npm test -- --ci
cd android
./gradlew --no-daemon :app:assembleDebug3. How it works
A clean install is based on the committed package lock and package manifest. An inconsistent pair is rejected. The shell predicate makes the expected state explicit and returns a nonzero status when it is not satisfied.
4. Verify the result
Use matching Node, React Native, JDK and Android SDK versions. Run native build checks independently of JS tests.
Validation syntax-validated (Bash parse). Status definitions.