Skip to content

Commit

Permalink
Update auto-yarn strategy
Browse files Browse the repository at this point in the history
Sometimes the commit messages look like "chore(package)", not
"fix(package)", but we should still run yarn in those cases.

Example: #256

I'm guessing it's just a chore when it's a devDependency.
  • Loading branch information
maxjacobson authored Apr 24, 2017
1 parent 9f8daf8 commit 9354bca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/circleci-update-yarn-lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

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

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

Expand All @@ -16,5 +16,5 @@ email="greenkeeper[bot]@users.noreply.github.com"
git config user.name "$name"
git config user.email "$email"

git commit --all --message "chore(package): update yarn.lock"
git commit --all --message "update yarn.lock"
git push --quiet origin "$CIRCLE_BRANCH"

0 comments on commit 9354bca

Please sign in to comment.