-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (39 loc) · 1.1 KB
/
eas-update-pr-review.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
38
39
40
41
42
43
44
45
46
47
48
name: EAS Update Preview
on:
pull_request:
branches: ["main"]
paths:
- "packages/common/**"
- "packages/mobile/**"
- "yarn.lock"
- ".yarnrc.yml"
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Enable Corepack before setting up Node
run: corepack enable
- name: Set up node 18.x
uses: actions/[email protected]
with:
node-version: 18
cache: yarn
- name: 🏗 Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: Install dependencies
run: yarn install
- name: Build GraphQL
run: yarn run gql:build
- name: Build common
run: yarn workspace @ukdanceblue/common run build
- name: Create preview
uses: expo/expo-github-action/preview@v8
with:
command:
eas update --auto --branch ${{ github.event.pull_request.head.ref }}
working-directory: packages/mobile