Skip to content

Commit d35a3ae

Browse files
committed
ci: add EAS production build workflow with pre-build checks
- Added `.eas/workflows/create-production-builds.yml` to automate production builds on `main` pushes or manual dispatch. - Included a `check_for_production_build` job to verify existing production build status before initiating new Android builds. - Removed iOS build job to focus current automation on Android. - Enforced package manager (`bun@1.4.2`) and engine constraints (`node>=22`, `bun>=1.4.2`) in `package.json`.
1 parent 062e9c8 commit d35a3ae

2 files changed

Lines changed: 26 additions & 6 deletions

File tree

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,28 @@
1-
21
name: Create Production Builds
32

3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
inputs:
9+
platform:
10+
description: "The platform to build"
11+
required: true
12+
default: "android"
13+
type: string
14+
415
jobs:
16+
check_for_production_build:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- run: echo "Checking for production build"
20+
- run: eas build:status --platform android --channel production
21+
env:
22+
EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }}
523
build_android:
624
type: build # This job type creates a production build for Android
725
params:
826
platform: android
9-
build_ios:
10-
type: build # This job type creates a production build for iOS
11-
params:
12-
platform: ios
13-
27+
needs:
28+
- check_for_production_build

‎package.json‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
"name": "@opencode-ai/mobile",
33
"version": "0.4.14",
44
"private": true,
5+
"packageManager": "bun@1.4.2",
6+
"engines": {
7+
"node": ">=22.0.0",
8+
"bun": ">=1.4.2"
9+
},
510
"main": "expo-router/entry",
611
"scripts": {
712
"start": "expo start",

0 commit comments

Comments
 (0)