# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
jobs:
  build:
    docker:
      - image: circleci/node:9.6
    working_directory: ~/repo

    steps:
      - checkout
      - restore_cache:
          keys:
          - v1-dependencies-{{ checksum "package.json" }}
          - v1-dependencies-
      - run:
          name: Install greenkeeper-lockfile
          command: npm install -g greenkeeper-lockfile@1
      - run:
          name: Install dependencies
          command: npm install
      - run:
          name: Update package-lock.json
          command: greenkeeper-lockfile-update
      - save_cache:
          paths:
            - node_modules
          key: v1-dependencies-{{ checksum "package.json" }}
      - run:
          name: Run tests
          command: npm test
      - run:
          name: Commit package-lock.json
          command: greenkeeper-lockfile-upload

# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
jobs:
  build:
    docker:
      - image: circleci/node:9.6
    working_directory: ~/repo

    steps:
      - checkout
      - restore_cache:
          keys:
          - v1-dependencies-{{ checksum "package.json" }}
          - v1-dependencies-
      - run:
          name: Install greenkeeper-lockfile
          command: sudo npm install -g greenkeeper-lockfile@1
      - run:
          name: Install dependencies
          command: npm install
      - run:
          name: Update package-lock.json
          command: greenkeeper-lockfile-update
      - save_cache:
          paths:
            - node_modules
          key: v1-dependencies-{{ checksum "package.json" }}
      - run:
          name: Run tests
          command: npm test
      - run:
          name: Commit package-lock.json
          command: greenkeeper-lockfile-upload

Use sudo to install greenkeeper-lockfile
Use sudo to install greenkeeper-lockfile
