version: 2 # CircleCI version 2

jobs:
    build:
        working_directory: ~/transcriptase
        docker:
            - image: circleci/node:8
        steps:
            - checkout
            - run:
                name: add-node-to-PATH
                command: export PATH="${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
            - run:
                name: install-yarn
                command: npm install -g yarn@latest
            - run:
                name: install-dependencies
                command: yarn install
            - run:
                name: test
                command: yarn test
            - run:
                name: build-and-deploy
                command: yarn build_binaries_for_distribution


version: 2 # CircleCI version 2

jobs:
    build:
        working_directory: ~/transcriptase
        docker:
            - image: circleci/node:8
        steps:
            - checkout
            - run:
                name: add-node-to-PATH
                command: export PATH="${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
            - run:
                name: Install Yarn
                command: npm install yarn@latest
            - run:
                name: install-dependencies
                command: yarn install
            - run:
                name: test
                command: yarn test
            - run:
                name: build-and-deploy
                command: yarn build_binaries_for_distribution


Install yarn locally to the project
Install yarn locally to the project
