Skip to content

Commit

Permalink
Add git pus pkg lock to circle ci config
Browse files Browse the repository at this point in the history
  • Loading branch information
debitoor-bot committed Jun 5, 2020
1 parent 76828e9 commit f71e460
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .circleci/config.yml
Expand Up @@ -19,6 +19,15 @@ jobs:
- run:
name: NPM Install
command: npm install
- run:
name: Git user identification
command: git config user.email "circleci@debitoor.com" && git config user.name "Circle Ci"
- run:
name: Checkout package.json
command: git checkout package.json
- run:
name: Git push
command: var=$(git status | grep package-lock.json | wc -l) && [ ! -z $var ] && git add package-lock.json && git commit -m "update pkg lock" && git push origin $CIRCLE_BRANCH || git status
- save_cache:
paths:
- node_modules
Expand Down

0 comments on commit f71e460

Please sign in to comment.