version: 2
jobs:
  build:
    working_directory: ~/datavisyn
    docker:
      - image: circleci/node:12.13-buster-browsers
    steps:
      - checkout
      - restore_cache:
          key: deps3-{{ .Branch }}-{{ checksum "package.json" }}-{{ checksum "package-lock.json" }}
      - run:
          name: install-npm-wee
          command: npm install
      - save_cache:
          key: deps3-{{ .Branch }}-{{ checksum "package.json" }}-{{ checksum "package-lock.json" }}
          paths:
          - ./node_modules
      - run:
          name: dist
          command: npm run dist
      - store_artifacts:
          path: dist
workflows:
  version: 2
  build-branch:
    jobs:
      - build:
          filters:
            tags:
              ignore: /^v.*/
  build-tag:
    jobs:
      - build:
          filters:
            branches:
              ignore: /.*/
            tags:
              only: /^v.*/

version: 2
jobs:
  build:
    working_directory: ~/datavisyn
    docker:
      - image: circleci/node:12.13-buster-browsers
    steps:
      - checkout
      - restore_cache:
          key: deps3-{{ .Branch }}-{{ checksum "package.json" }}
      - run:
          name: install-npm-wee
          command: npm install
      - save_cache:
          key: deps3-{{ .Branch }}-{{ checksum "package.json" }}
          paths:
          - ./node_modules
      - run:
          name: dist
          command: npm run dist
      - store_artifacts:
          path: dist
workflows:
  version: 2
  build-branch:
    jobs:
      - build:
          filters:
            tags:
              ignore: /^v.*/
  build-tag:
    jobs:
      - build:
          filters:
            branches:
              ignore: /.*/
            tags:
              only: /^v.*/

Remove package-lock.json from CircleCI cache hash
Remove package-lock.json from CircleCI cache hash
