-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 1.08 KB
/
preview-mobile-on-pr.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
name: Create preview environment for RN Expo Mobile (iOS + Android) App on PR
on:
pull_request:
branches: [main]
paths:
- 'app/**'
- 'package.json'
- 'package-lock.json'
- '.github/workflows/preview-mobile-on-pr.yml'
permissions: write-all
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v3
- name: 🏗 Setup Node
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: npm
- name: 🏗 Setup Expo
uses: expo/expo-github-action@v7
with:
expo-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: 📦 Install dependencies
run: npm ci
- name: 🏗 Install expo-updates
run: expo install expo-updates
- name: 🚀 Publish preview
run: expo publish --release-channel=pr-${{ github.event.number }} --non-interactive
- name: 💬 Comment preview
uses: expo/expo-github-action/preview-comment@v7
with:
channel: pr-${{ github.event.number }}