codeclimate/codeclimate-eslint

View on GitHub
bin/circleci-update-yarn-lock

Summary

Maintainability
Test Coverage
#!/bin/bash

set -e

git log --name-status HEAD^..HEAD | grep "(package): update" || { echo ">> not an update commit"; exit 0; }

yarn install --no-progress --pure-lockfile

yarn check && { echo ">> yarn check passed, yarn.lock does not need to update"; exit 0; }

yarn install --force --no-progress

name="greenkeeper[bot]"
email="greenkeeper[bot]@users.noreply.github.com"

git config user.name "$name"
git config user.email "$email"

git commit --all --message "update yarn.lock"
git push --quiet origin "$CIRCLE_BRANCH"