version: 2.1
jobs:
  build:
    docker:
      - image: circleci/node:10
    steps:
      - checkout
      - restore_cache:
          name: Restore Yarn packages cache
          keys:
            - yarn-packages-{{ checksum "yarn.lock" }}
      - run:
          name: Install dependencies
          command: yarn install --frozen-lockfile
      - save_cache:
          name: Save Yarn packages cache
          key: yarn-packages-{{ checksum "yarn.lock" }}
          paths:
            - ~/.cache/yarn
      - run:
          name: Check types
          command: yarn run check-types
      - run:
          name: Lint
          command: yarn run lint
      - run:
          name: Sign in to Expo
          # expo_password is defined as an environment variable in CircleCI.
          command: |
            if [ "${CIRCLE_BRANCH}" == "master" ]; then
              yarn expo login --username janaagaard75 --password $expo_password
            fi
      - run:
          name: Publish to Expo
          command: |
            if [ "${CIRCLE_BRANCH}" == "master" ]; then
              yarn expo publish --quiet
            fi

version: 2.1
jobs:
  build:
    docker:
      - image: circleci/node:10
    steps:
      - checkout
      - restore_cache:
          name: Restore Yarn packages cache
          keys:
            - yarn-packages-{{ checksum "yarn.lock" }}
      - run:
          name: Install dependencies
          command: yarn install --frozen-lockfile
      - save_cache:
          name: Save Yarn packages cache
          key: yarn-packages-{{ checksum "yarn.lock" }}
          paths:
            - ~/.cache/yarn
      - run:
          name: Check types
          command: yarn run check-types
      - run:
          name: Lint
          command: yarn run lint
      - run:
          name: Sign in to Expo, if master branch
          # expo_password is defined as an environment variable in CircleCI.
          command: |
            if [ "${CIRCLE_BRANCH}" == "master" ]; then
              yarn expo login --username janaagaard75 --password $expo_password
            fi
      - run:
          name: Publish to Expo, if master branch
          command: |
            if [ "${CIRCLE_BRANCH}" == "master" ]; then
              yarn expo publish --quiet
            fi

Add notes about master branch
Add notes about master branch
