version: 0.2

phases:
  install:
    commands:
      - yarn install
  build:
    commands:
    - yarn build
    - yarn deploy-assets
    - yarn sls:$ENV

artifacts:
  files:
    - serverless.yml
    - build/**/*
  discard-paths: yes

cache:
  paths:
    - '/node_modules/**/*'
