forked from Stellar-IndigoPay/Stellar-IndigoPay
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 873 Bytes
/
Copy pathmobile.yml
File metadata and controls
36 lines (33 loc) · 873 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Mobile Preview Build
on:
push:
branches: [main, develop]
jobs:
ci-pass:
if: github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- run: exit 0
build:
if: github.event_name != 'push'
name: EAS Preview Build
runs-on: ubuntu-latest
env:
EXPO_TOKEN_SET: ${{ secrets.EXPO_TOKEN != '' }}
defaults:
run:
working-directory: mobile
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"
cache-dependency-path: mobile/package-lock.json
- run: npm ci
- uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- run: eas build --platform all --profile preview --non-interactive
if: env.EXPO_TOKEN_SET == 'true'