language: node_js
cache:
  directories:
    - node_modules
notifications:
  email: false
node_js:
  - '8'
  - '7'
before_script:
  - npm prune
script:
  - npm run test:single
  - npm run build-storybook
after_success:
  - npm run semantic-release
deploy:
  provider: surge
  project: ./storybook-static/
  domain: react-animation-components.surge.sh 
branches:
  only: 
    - master

language: node_js
cache:
  directories:
    - node_modules
notifications:
  email: false
node_js:
  - '8'
  - '7'
before_script:
  - npm prune
script:
  - npm run test:single
after_success:
  - npm run semantic-release
before_deploy:
  - npm run build-storybook && ls
deploy:
  provider: surge
  project: ./storybook-static
  domain: react-animation-components.surge.sh 
branches:
  only: 
    - master

MOve build storybook into before_deploy and ls files for debug
ci(surge): MOve build storybook into before_deploy and ls files for debug
