File tree Expand file tree Collapse file tree 3 files changed +45
-43
lines changed Expand file tree Collapse file tree 3 files changed +45
-43
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ dist : trusty
2+ sudo : false
3+ language : node_js
4+ node_js :
5+ - 9
6+
7+ cache :
8+ directories :
9+ - " node_modules"
10+
11+ git :
12+ depth : false
13+
14+ branches :
15+ only :
16+ - master
17+
18+ before_script :
19+ - bash ci/commit-lockfile.sh
20+
21+ notifications :
22+ email : false
23+ slack :
24+ on_success : change
25+ on_failure : always
26+ rooms :
27+ - heyprof:OnsMQaj2FtGkJ972FzpPw60T#pipelines-front
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ if [[ $TRAVIS_PULL_REQUEST_BRANCH != * " greenkeeper" * ]]; then
4+ exit 0
5+ fi
6+
7+ if ! git diff-index --quiet HEAD --; then
8+ git config --global user.email " $GITHUB_EMAIL "
9+ git config --global user.name " Travis CI"
10+ git config --global push.default simple
11+ git remote add jenkins https://" $GITHUB_TOKEN " @github.com/" $TRAVIS_REPO_SLUG " .git
12+
13+ git add package-lock.json
14+ git commit -m " chore(*): update lockfile [ci skip]"
15+ LAST_COMMIT=` git rev-parse HEAD`
16+ git push jenkins $LAST_COMMIT :$TRAVIS_PULL_REQUEST_BRANCH
17+ git remote rm jenkins
18+ fi
You can’t perform that action at this time.
0 commit comments