-
Notifications
You must be signed in to change notification settings - Fork 11
/
buildspec.yml
34 lines (32 loc) · 967 Bytes
/
buildspec.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
version: 0.2
phases:
install:
runtime-versions:
nodejs: 12
commands:
- echo Installing dependencies...
- npm install --global --unsafe-perm sharp-cli expo-cli
- npm install --force
pre_build:
commands:
# - export EXPO_CLI_PASSWORD=$(aws ssm get-parameter --name "expo-cli-password" --region "us-east-1" --query 'Parameter.Value' --with-decryption --output text)
- npx expo login --non-interactive -u ${EXPO_USERNAME} -p ${EXPO_CLI_PASSWORD}
build:
commands:
- echo Build started on `date`
- echo Compiling the actual code
- expo publish
# - expo build:web
- expo build:android -t apk --no-wait
post_build:
commands:
- echo Build completed on `date`
- echo Android build status can be checked at https://expo.dev/
# artifacts:
# files:
# - './**/*'
# base-directory: web-build
# name: SocialJusticeWarriors
cache:
paths:
- './node_modules/**/*'