EAS Preview Build #26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |