mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-07-14 18:15:56 -04:00
Add @sofa/native Expo React Native app (#7)
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user