Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 71 additions & 0 deletions .eas/workflows/build-eas.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: build

on:
push:
branches: ['*']

jobs:
build_app_android:
steps:
- uses: eas/checkout # This also changes cwd
- uses: eas/install_node_modules

- name: Build the config plugin so it can be used in the example app
run: |
cd ..
npm run build:plugin

- name: Set the Expo version for the example project and install recommend dep versions
run: npx expo install expo@^53 --fix # one dep is 54-incompatible

- name: Run expo prebuild
run: EXPO_DEBUG=1 npx expo prebuild -p android

- name: Print eas.json
run: cat eas.json

- name: Bundle JS code to verify it bundles
run: npx expo export

# perform native build steps.
# Alternatively, use `eas/build` which will work too but performs checkout and install again (they basically noop)
- uses: eas/resolve_build_config
- uses: eas/run_gradle
- uses: eas/find_and_upload_build_artifacts
type: build
params:
platform: android
profile: preview

build_app_ios:
steps:
- uses: eas/checkout # This also changes cwd
- uses: eas/install_node_modules

- name: Build the config plugin so it can be used in the example app
run: |
cd ..
npm run build:plugin

- name: Set the Expo version for the example project and install recommend dep versions
run: npx expo install expo@next --fix

- name: Run expo prebuild
run: EXPO_DEBUG=1 npx expo prebuild -p ios

- name: Bundle JS code to verify it bundles
run: npx expo export

- name: Print eas.json
run: cat eas.json

# perform native build steps
# Alternatively, use `eas/build` which will work too but performs checkout and install again (they basically noop)
- uses: eas/resolve_build_config
- uses: eas/generate_gymfile_from_template
- uses: eas/run_fastlane
- uses: eas/find_and_upload_build_artifacts
type: build
params:
platform: ios
profile: preview
8 changes: 7 additions & 1 deletion example/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
},
"android": {
"package": "com.vonovak.themeexpoexample"
}
},
"extra": {
"eas": {
"projectId": "348a68a7-b896-4172-ae18-64e4afc32413"
}
},
"owner": "expo-ci"
}
}
25 changes: 25 additions & 0 deletions example/eas.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"cli": {
"version": ">= 16.17.4",
"appVersionSource": "remote"
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal"
},
"preview": {
"withoutCredentials": true,
"distribution": "internal",
"ios": {
"simulator": true
}
},
"production": {
"autoIncrement": true
}
},
"submit": {
"production": {}
}
}