Add @sofa/native Expo React Native app (#7)

This commit is contained in:
2026-03-12 19:39:54 -04:00
committed by GitHub
parent a326c968b7
commit 83839a0cd7
130 changed files with 9015 additions and 971 deletions
+51
View File
@@ -0,0 +1,51 @@
name: EAS Build
on:
workflow_dispatch:
inputs:
platform:
description: Platform to build
type: choice
options:
- all
- ios
- android
default: all
profile:
description: Build profile
type: choice
options:
- production
- development
default: production
push:
branches: [main]
paths:
- apps/native/**
- packages/api/**
jobs:
build:
name: EAS Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- uses: oven-sh/setup-bun@v2
- name: Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Build
working-directory: apps/native
run: eas build --platform ${{ inputs.platform || 'all' }} --profile ${{ inputs.profile || 'production' }} --non-interactive --no-wait
+39
View File
@@ -0,0 +1,39 @@
name: EAS Submit
on:
workflow_dispatch:
inputs:
platform:
description: Platform to submit
type: choice
options:
- all
- ios
- android
default: all
jobs:
submit:
name: EAS Submit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- uses: oven-sh/setup-bun@v2
- name: Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Submit
working-directory: apps/native
run: eas submit --platform ${{ inputs.platform || 'all' }} --latest --non-interactive
+33
View File
@@ -0,0 +1,33 @@
name: EAS Update
on:
pull_request:
paths:
- apps/native/**
- packages/api/**
jobs:
update:
name: EAS Update
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- uses: oven-sh/setup-bun@v2
- name: Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Publish update
working-directory: apps/native
run: eas update --branch ${{ github.head_ref }} --message "${{ github.event.pull_request.title }}" --non-interactive
+4
View File
@@ -18,6 +18,10 @@ jobs:
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Generate Expo types
run: bunx expo customize tsconfig.json
working-directory: ./apps/native
- name: Lint
run: bunx turbo run lint