Skip to content

Commit 4fec7e1

Browse files
committed
chore: add QR code to expo preview messages
1 parent 8c563ac commit 4fec7e1

File tree

1 file changed

+32
-30
lines changed

1 file changed

+32
-30
lines changed
Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
name: Expo Review
1+
name: Expo Preview
22
on: [pull_request]
3+
34
jobs:
45
publish:
56
name: Install and publish
@@ -8,41 +9,42 @@ jobs:
89
- name: Checkout
910
uses: actions/checkout@v1
1011

11-
- name: Setup Node.js
12-
uses: actions/setup-node@v1
13-
with:
14-
node-version: 12.x
12+
# - name: Setup Node.js
13+
# uses: actions/setup-node@v1
14+
# with:
15+
# node-version: 12.x
1516

16-
- name: Setup Expo
17-
uses: expo/expo-github-action@v5
18-
with:
19-
expo-version: 3.x
20-
expo-username: ${{ secrets.EXPO_CLI_USERNAME_PAPER }}
21-
expo-password: ${{ secrets.EXPO_CLI_PASSWORD_PAPER }}
22-
expo-cache: true
23-
24-
- name: Get yarn cache
25-
id: yarn-cache
26-
run: echo "::set-output name=dir::$(yarn cache dir)"
27-
28-
- name: Check yarn cache
29-
uses: actions/cache@v1
30-
with:
31-
path: ${{ steps.yarn-cache.outputs.dir }}
32-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
33-
restore-keys: |
34-
${{ runner.os }}-yarn-
17+
# - name: Setup Expo
18+
# uses: expo/expo-github-action@v5
19+
# with:
20+
# expo-version: 3.x
21+
# expo-username: ${{ secrets.EXPO_CLI_USERNAME_PAPER }}
22+
# expo-password: ${{ secrets.EXPO_CLI_PASSWORD_PAPER }}
23+
# expo-cache: true
24+
25+
# - name: Get yarn cache
26+
# id: yarn-cache
27+
# run: echo "::set-output name=dir::$(yarn cache dir)"
28+
29+
# - name: Check yarn cache
30+
# uses: actions/cache@v1
31+
# with:
32+
# path: ${{ steps.yarn-cache.outputs.dir }}
33+
# key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
34+
# restore-keys: |
35+
# ${{ runner.os }}-yarn-
3536

36-
- name: Install dependencies
37-
run: yarn bootstrap
37+
# - name: Install dependencies
38+
# run: yarn bootstrap
3839

39-
- name: Publish Expo app
40-
working-directory: ./example
41-
run: expo publish --release-channel=pr-${{ github.event.number }}
40+
# - name: Publish Expo app
41+
# working-directory: ./example
42+
# run: expo publish --release-channel=pr-${{ github.event.number }}
4243

4344
- name: Comment on PR
4445
uses: unsplash/comment-on-pr@master
4546
env:
4647
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48+
PUBLISH_URL: https://expo.io/@react-native-paper/react-native-paper-example?release-channel=pr-${{ github.event.number }}
4749
with:
48-
msg: The mobile version of example app from this branch is ready! You can [see it here](https://expo.io/@react-native-paper/react-native-paper-example?release-channel=pr-${{ github.event.number }}).
50+
msg: The mobile version of example app from this branch is ready! You can [see it here]($PUBLISH_URL)<br><br><img src="https://api.qrserver.com/v1/create-qr-code/?size=200x200&data=$PUBLISH_URL" height="200px" width="200px">.

0 commit comments

Comments
 (0)