-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (32 loc) · 952 Bytes
/
pr-preview.yml
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
37
# https://github.com/expo/expo-github-action/tree/main/preview#create-previews-on-pull-requests
name: EAS Preview Start
on:
pull_request:
types: [opened, synchronize, reopened]
paths:
- apps/mobile/**
- apps/server/**
jobs:
preview:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.10.0
cache: yarn
- name: Setup Expo and EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: Install dependencies
run: yarn install
- name: Trigger EAS Preview
uses: expo/expo-github-action/preview@v8
id: preview
with:
working-directory: ./apps/mobile
command: eas update --auto --branch ${{ github.event.pull_request.head.ref }}