1 | #!/usr/bin/env bash
|
2 |
|
3 | set -ex
|
4 |
|
5 | PATH=/usr/local/share/.config/yarn/global/node_modules/.bin:$PATH
|
6 |
|
7 | if [[ "$CIRCLE_BRANCH" != greenkeeper/* ]]; then
|
8 | yarn
|
9 | # yarn check
|
10 | exit 0
|
11 | fi
|
12 |
|
13 | if [[ ! -z "$GIT_EMAIL" ]] & [[ ! -z "$GIT_USERNAME" ]]; then
|
14 | git config --global push.default simple
|
15 | git config --global user.email "$GIT_EMAIL"
|
16 | git config --global user.name "$GIT_USERNAME"
|
17 | fi
|
18 |
|
19 | if [[ ! -x "$(command -v greenkeeper-lockfile-update)" ]]; then
|
20 | yarn global add greenkeeper-lockfile@1
|
21 | fi
|
22 |
|
23 | greenkeeper-lockfile-update
|
24 | yarn
|
25 | greenkeeper-lockfile-upload
|