UNPKG

553 BPlain TextView Raw
1#!/usr/bin/env bash
2
3set -ex
4
5PATH=/usr/local/share/.config/yarn/global/node_modules/.bin:$PATH
6
7if [[ "$CIRCLE_BRANCH" != greenkeeper/* ]]; then
8 yarn
9 # yarn check
10 exit 0
11fi
12
13if [[ ! -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"
17fi
18
19if [[ ! -x "$(command -v greenkeeper-lockfile-update)" ]]; then
20 yarn global add greenkeeper-lockfile@1
21fi
22
23greenkeeper-lockfile-update
24yarn
25greenkeeper-lockfile-upload