File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -4,16 +4,15 @@ PROJECT_LOCKFILE=${PROJECT_LOCKFILE:-"package-lock.json"}
4
4
GITHUB_EMAIL=${GITHUB_EMAIL:- " task-runner@circleci" }
5
5
GITHUB_NAME=${GITHUB_NAME:- " Circle CI<$GITHUB_EMAIL >" }
6
6
7
- # if [[ $TRAVIS_PULL_REQUEST_BRANCH != *"greenkeeper"* ]]; then
8
- # exit 0
9
- # fi
7
+ if [[ $CIRCLE_BRANCH != * " greenkeeper" * ]]; then
8
+ exit 0
9
+ fi
10
10
11
- echo " " >> $PROJECT_LOCKFILE
12
- # if ! git diff-index --quiet HEAD $PROJECT_LOCKFILE --; then
11
+ if ! git diff-index --quiet HEAD $PROJECT_LOCKFILE --; then
13
12
git config user.email $GITHUB_EMAIL
14
13
git config user.name $GITHUB_NAME
15
14
16
15
git add $PROJECT_LOCKFILE
17
16
git commit -m " chore(*): update lockfile [ci skip]" -m " See: $CIRCLE_BUILD_URL "
18
17
git push origin $CIRCLE_BRANCH
19
- # fi
18
+ fi
Original file line number Diff line number Diff line change @@ -26,12 +26,12 @@ jobs:
26
26
- node_modules
27
27
key : dependencies-{{ checksum "package.json" }}
28
28
29
- - run :
30
- name : Custom task
31
- command : .circleci/commit-lockfile.sh
32
-
33
29
- run :
34
30
name : Executing tests
35
31
command : npm test
36
32
33
+ - run :
34
+ name : Update Lockfile
35
+ command : .circleci/commit-lockfile.sh
36
+
37
37
You can’t perform that action at this time.
0 commit comments