language: node_js
node_js:
  - node
cache:
  yarn: true
  directories:
    - node_modules
before_install:
  - yarn global add yarn
  - export PATH="$PATH:`yarn global bin`"
before_deploy:
  - yarn global add now
script: []
deploy:
  - provider: script
    script:
      - cd packages/api.literally.deals
      - now --token $NOW_TOKEN
    on:
      all_branches: true
      master: false
  - provider: script
    script:
      - cd packages/literally.deals
      - now --token $NOW_TOKEN
    on:
      all_branches: true
      master: false
  - provider: script
    script:
      - cd packages/api.literally.deals
      - now --token $NOW_TOKEN
      - now alias --token $NOW_TOKEN
    on:
      master: true
  - provider: script
    script:
      - cd packages/literally.deals
      - now --token $NOW_TOKEN
      - now alias --token $NOW_TOKEN
    on:
      master: true

language: node_js
node_js:
  - node
cache:
  yarn: true
  directories:
    - node_modules
before_install:
  - yarn global add yarn
  - export PATH="`yarn global bin`:$PATH"
before_deploy:
  - yarn global add now
script: []
deploy:
  - provider: script
    script:
      - cd packages/api.literally.deals
      - now --token $NOW_TOKEN
    on:
      all_branches: true
      master: false
  - provider: script
    script:
      - cd packages/literally.deals
      - now --token $NOW_TOKEN
    on:
      all_branches: true
      master: false
  - provider: script
    script:
      - cd packages/api.literally.deals
      - now --token $NOW_TOKEN
      - now alias --token $NOW_TOKEN
    on:
      master: true
  - provider: script
    script:
      - cd packages/literally.deals
      - now --token $NOW_TOKEN
      - now alias --token $NOW_TOKEN
    on:
      master: true

Adjust path for Yarn versions on Travis
Adjust path for Yarn versions on Travis
