jobs:
  build:
    working_directory: ~/CriminalContact
    docker:
      - image: circleci/node:10-browsers
    branches:
      only:
        - master
    steps:
      - checkout
      - restore_cache:
          key: dependency-cache-{{ checksum "package.json" }}
      - run:
          name: Install dependencies
          command: yarn install
      - save_cache:
          key: dependency-cache-{{ checksum "package.json" }}
          paths:
            - ./node_modules
      - run:
          name: Build Electron
          command: yarn run build:electron
      - run:
          name: Build Angular
          command: yarn run build:ng
jobs:
  build:
    working_directory: ~/CriminalContact
    docker:
      - image: circleci/node:10-browsers
    branches:
      only:
        - master
    steps:
      - checkout
      - restore_cache:
          key: dependency-cache-{{ checksum "package.json" }}
      - run:
          name: Install dependencies
          command: yarn install
      - save_cache:
          key: dependency-cache-{{ checksum "package.json" }}
          paths:
            - ./node_modules
      - run:
          name: Build Electron
          command: yarn run build:electron
      - run:
          name: Build Angular
          command: yarn run build:ng
      - store_artifacts:
          path: /build
Store build artefacts in circleci
Store build artefacts in circleci

