-
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 1.13 KB
/
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
38
name: preview
on:
pull_request:
types: [opened, synchronize]
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true
jobs:
mobile:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repository
uses: actions/checkout@v3
- name: 🏗 Setup monorepo
uses: ./.github/actions/setup-monorepo
with:
expo-token: ${{ secrets.EXPO_TOKEN }}
- name: 👷 Build packages
run: pnpm run -w build:mobile
# You can remove this step if you already configured this
# This project shouldn't be pre-configured with this ID, that's why its omitted
- name: 👷 Configure project
working-directory: apps/mobile
run: |
eas init --id 7f86376f-9f10-43f4-8792-04a7c0d04265 --force --non-interactive
echo $(jq '.expo.runtimeVersion.policy = "sdkVersion"' app.json) > app.json
- name: 🚀 Create preview
uses: expo/expo-github-action/preview@v8
with:
working-directory: apps/mobile
command: eas update --auto --branch=pr-${{ github.event.number }}