-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.yml
57 lines (53 loc) · 1.31 KB
/
config.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
version: 2
references:
container_config: &container_config
docker:
- image: circleci/node:latest
environment:
EXPO_ACCOUNT: "enter_your_expo_account"
EXPO_PASSWORD: "enter_your_expo_account_password"
install_expo_cli: &install_expo_cli
run:
name: install-expo-cli
command: sudo npm install -g expo-cli
login_expo_cli: &login_expo_cli
run:
name: login-expo
command: expo login -u $EXPO_ACCOUNT -p $EXPO_PASSWORD --non-interactive
jobs:
code_check:
<<: *container_config
steps:
- checkout
- restore_cache:
keys: dependency-cache-{{ checksum "package.json" }}
- run:
name: install-npm-wee
command: npm install
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- node_modules
- persist_to_workspace:
root: .
paths:
- .
build:
<<: *container_config
steps:
- checkout
- attach_workspace:
at: .
- *install_expo_cli
- *login_expo_cli
- run:
name: publish
command: expo publish --release-channel $CIRCLE_SHA1
workflows:
version: 2
build_and_test:
jobs:
- code_check
- build:
requires:
- code_check