version: 2
jobs:
  build:
    docker:
      - image: circleci/node:current
    steps:
      - checkout
      - run:
          name: Install Greenkeeper Lockfile
          command: |
            echo 'export PATH=$(yarn global bin):$PATH' >> $BASH_ENV
            source $BASH_ENV
            yarn global add greenkeeper-lockfile@1
      - run:
          name: Update Greenkeeper Lockfile
          command: "greenkeeper-lockfile-update"
      - restore_cache:
          name: Restore Yarn Package Cache
          keys:
            - yarn-packages-{{ checksum "yarn.lock" }}
      - run:
          name: Install Packages
          command: yarn install
      - save_cache:
          name: Save Yarn Package Cache
          key: yarn-packages-{{ checksum "yarn.lock" }}
          paths:
            - ~/.cache/yarn
      - run:
          name: Test
          command: yarn test
      - run:
          name: Upload Greenkeeper Lockfile
          command: "greenkeeper-lockfile-upload"

version: 2
jobs:
  build:
    docker:
      # https://circleci.com/docs/2.0/docker-image-tags.json
      - image: circleci/node:current
    steps:
      - checkout
      - run:
          name: Install Greenkeeper Lockfile
          command: |
            echo 'export PATH=$(yarn global bin):$PATH' >> $BASH_ENV
            source $BASH_ENV
            yarn global add greenkeeper-lockfile@1
      - run:
          name: Update Greenkeeper Lockfile
          command: "greenkeeper-lockfile-update"
      - restore_cache:
          name: Restore Yarn Package Cache
          keys:
            - yarn-packages-{{ checksum "yarn.lock" }}
      - run:
          name: Install Packages
          command: yarn install
      - save_cache:
          name: Save Yarn Package Cache
          key: yarn-packages-{{ checksum "yarn.lock" }}
          paths:
            - ~/.cache/yarn
      - run:
          name: Test
          command: yarn test
      - run:
          name: Upload Greenkeeper Lockfile
          command: "greenkeeper-lockfile-upload"

Add link to image tags.
chore(ci): Add link to image tags.
