general:
  branches:
    only:
      - master
      - staging
      - /(feature|hotfix|release)\/.*/

machine:
  timezone:
    America/Sao_Paulo
  ruby:
    version: 2.4.1
  node:
    version: 8.1.4
  environment:
    RACK_ENV: ci
    NODE_ENV: test
    BUNDLE_WITHOUT: development

dependencies:
  override:
    - bin/setup

test:
  override:
    - bin/test

deployment:
  staging:
    branch: staging
    commands:
      - git push git@heroku.com:$HEROKU_APP_NAME.git $CIRCLE_SHA1:refs/heads/master

  # production:
  #   branch: master
  #   commands:
  #     - ./deploy_prod.sh

general:
  branches:
    only:
      - master
      - staging
      - /(feature|hotfix|release)\/.*/

machine:
  timezone:
    America/Sao_Paulo
  ruby:
    version: 2.4.1
  node:
    version: 8.2.1
  environment:
    RACK_ENV: ci
    NODE_ENV: test
    BUNDLE_WITHOUT: development

dependencies:
  override:
    - bin/setup

test:
  override:
    - bin/test

deployment:
  staging:
    branch: staging
    commands:
      - git push git@heroku.com:$HEROKU_APP_NAME.git $CIRCLE_SHA1:refs/heads/master

  # production:
  #   branch: master
  #   commands:
  #     - ./deploy_prod.sh

Update node version on CircleCI
Update node version on CircleCI
