forked from WS22-23-SWEPM3ILV-INF-BA-VZ-Group-2/App
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 956 Bytes
/
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
name: Preview
on:
pull_request:
types: [opened, synchronize]
jobs:
preview:
if: github.event.pull_request.labels[0].name != 'dependencies'
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: 🗂️ Setup repo
uses: actions/checkout@v2
- name: ❇️ Setup Node
uses: actions/setup-node@v2
with:
node-version: 16.x
- name: 🏗 Setup Expo
uses: expo/expo-github-action@v7
with:
expo-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: 📦 Install dependencies
run: npm install
- name: 🚀 Publish to Expo
run: API_URL=${{ secrets.API_URL }} expo publish --release-channel=pr-${{ github.event.number }} --non-interactive
- name: 💬 Comment in preview
uses: expo/expo-github-action/preview-comment@v7
with:
channel: pr-${{ github.event.number }}