version: 2
jobs:
  build:
    docker:
      - image: circleci/node:10
    steps:
      - checkout
      - restore_cache:
          keys:
          - v1-dependencies-{{ checksum "package.json" }}
      - run: yarn install
      - save_cache:
          paths:
            - node_modules
          key: v1-dependencies-{{ checksum "package.json" }}
      - run: yarn lint
      - run: yarn lint:ts
      - run: yarn jest
      - run: yarn deploy
      - run: ls -l build/* build.zip
      - run: sha256sum build/* build.zip | tee SHA256SUMS.txt
      - run: cat build/* | sha256sum | tee -a SHA256SUMS.txt
      - run: mkdir dist && mv build.zip SHA256SUMS.txt dist
      - store_artifacts:
          path: dist
          destination: dist

version: 2
jobs:
  build:
    docker:
      - image: circleci/node:10
    steps:
      - checkout
      - restore_cache:
          keys:
          - v1-dependencies-{{ checksum "yarn.lock" }}
      - run: yarn install
      - save_cache:
          paths:
            - node_modules
          key: v1-dependencies-{{ checksum "yarn.lock" }}
      - run: yarn lint
      - run: yarn lint:ts
      - run: yarn jest
      - run: yarn deploy
      - run: ls -l build/* build.zip
      - run: sha256sum build/* build.zip | tee SHA256SUMS.txt
      - run: cat build/* | sha256sum | tee -a SHA256SUMS.txt
      - run: mkdir dist && mv build.zip SHA256SUMS.txt dist
      - store_artifacts:
          path: dist
          destination: dist

Use yarn.lock as key for CircleCI cache
Use yarn.lock as key for CircleCI cache
