version: 2


jobs:
  build:
    working_directory: ~/app
    docker:
      - image: circleci/node:10

    steps:
      - checkout
      - restore_cache:
          key: deps-{{ checksum "yarn.lock" }}
      - run: yarn install --pure-lockfile --offline
      - run: yarn deps
      - save_cache:
          key: deps-{{ checksum "yarn.lock" }}
          paths:
            - ~/.cache/yarn
            - node_modules
      - run: yarn lint
      - run: yarn test
      - run: yarn lib
      - run: yarn dist
      - run: yarn pub

version: 2


jobs:
  build:
    working_directory: ~/app
    docker:
      - image: circleci/node:14

    steps:
      - checkout
      - restore_cache:
          key: deps-{{ checksum "yarn.lock" }}
      - run: yarn install --pure-lockfile --offline
      - run: yarn deps
      - save_cache:
          key: deps-{{ checksum "yarn.lock" }}
          paths:
            - ~/.cache/yarn
            - node_modules
      - run: yarn audit --prefer-offline
      - run: yarn lint
      - run: yarn test
      - run: yarn lib
      - run: yarn dist
      - run: yarn pub

Add deps audit and update CI Node version
Add deps audit and update CI Node version
