-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathbitrise.yml
70 lines (66 loc) · 1.54 KB
/
bitrise.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
format_version: '11'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: react-native
trigger_map:
- push_branch: master
workflow: publish
- pull_request_source_branch: "*"
pull_request_target_branch: master
workflow: ci
workflows:
_git-clone:
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@6: {}
ci:
before_run:
- _git-clone
envs:
- opts:
is_expand: false
NODE_ENV: development
steps:
- cache-pull@2: {}
- script@1:
title: Yarn Install development mode
inputs:
- content: |-
#!/usr/bin/env bash
set -ex
yarn
- script@1:
title: Run tests
inputs:
- content: |-
#!/usr/bin/env bash
set -ex
yarn test
- cache-push@2:
inputs:
- cache_paths: "./node_modules -> ./yarn.lock"
publish:
before_run:
- _git-clone
steps:
- cache-pull@2: {}
- script@1:
title: Yarn Install with Expo
inputs:
- content: |-
#!/usr/bin/env bash
set -ex
yarn global add expo-cli
yarn
- script@1:
title: Expo publish
inputs:
- content: |-
#!/usr/bin/env bash
set -ex
expo login -u $EXPO_USERNAME -p $EXPO_PASSWORD --non-interactive
expo publish
- cache-push@2:
inputs:
- cache_paths: "./node_modules -> ./yarn.lock"