version: 2 # CircleCI version 2

jobs:
  build:
    working_directory: ~/transcriptase
    machine:
        xcode:
            version: 8.2.1
    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


version: 2 # CircleCI version 2

jobs:
  build:
    working_directory: ~/transcriptase
    machine:
        xcode:
            version: 8.2.1
    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


Install yarn as a global npm module
Install yarn as a global npm module

Even though I don't want to, the console output is warning me to :-(
