forked from BirthdayResearch/defichain-wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.52 KB
/
expo-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
39
40
41
42
43
44
45
46
47
name: Expo PR Preview
on:
pull_request:
paths-ignore:
- "**.md"
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true
jobs:
publish-preview:
if: github.event.sender.type == 'User' && github.event.pull_request.head.repo.full_name == github.repository
name: Publish Preview
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
with:
node-version: 16
cache: "npm"
- uses: expo/expo-github-action@f98a64c8874c4a163514273f34306f403e962350 # tag=v7.2.0
with:
expo-version: latest
eas-version: latest
expo-cache: true
eas-cache: true
packager: npm
token: ${{ secrets.EXPO_TOKEN }}
- run: npm ci
- run: eas update --branch pr-${{ github.ref_name }} --message 'Update with commit ${{ github.sha }}'
env:
EAS_PROJECT_ID: ${{ secrets.EAS_PROJECT_ID }}
- uses: marocchino/sticky-pull-request-comment@fcf6fe9e4a0409cd9316a5011435be0f3327f1e1 # v2.3.1
with:
GITHUB_TOKEN: ${{ secrets.DEFICHAIN_BOT_GITHUB_TOKEN }}
header: wallet-preview
message: |
Build preview for DeFiChain Wallet is ready!
Built with commit ${{ github.sha }}
https://expo.io/@defichain/wallet?release-channel=pr-preview-${{ github.event.number }}