forked from BirthdayResearch/defichain-wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1.34 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
name: Expo
on:
pull_request:
branches: [ main ]
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@dcd71f646680f2efd8db4afa5ad64fdcba30e748
- uses: actions/setup-node@56337c425554a6be30cdef71bf441f15be286854
with:
node-version: 16
cache: 'npm'
- uses: expo/expo-github-action@f98a64c8874c4a163514273f34306f403e962350
with:
expo-version: 4.x
expo-cache: true
packager: npm
token: ${{ secrets.EXPO_TOKEN }}
- run: npm ci
- run: expo publish --release-channel=pr-preview-${{ github.event.number }}
- uses: marocchino/sticky-pull-request-comment@39c5b5dc7717447d0cba270cd115037d32d28443
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 }}