Skip to content

EAS Preview Build

EAS Preview Build #27

name: EAS Preview Build
on: workflow_dispatch
jobs:
update-and-build:
if: github.event.pull_request.draft == false
name: Update and build on EAS
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: npm
- name: Set up Expo and EAS
uses: expo/expo-github-action@v7
with:
expo-version: latest
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: Install dependencies
run: npm ci
- name: Update on EAS
run: eas update --branch preview --auto
- name: Build on EAS
run: eas build --platform android --profile preview --non-interactive