language: node_js
node_js:
  - "7" #latest
  - "6" #LTS
script:
  - npm run web
  - npm run tslint
before_deploy:
  - mkdir filesToDeploy
  - mkdir filesToDeploy/dist
  - cp index.html filesToDeploy/index.html
  - cp dist/bundle.js filesToDeploy/dist/bundle.js
deploy:
  provider: pages
  skip_cleanup: true
  local_dir: filesToDeploy
  github_token: $DEPLOY_TOKEN
  on:
    branch: master

language: node_js
node_js:
  - "8"
script:
  - npm run web
  - npm run tslint
before_deploy:
  - mkdir filesToDeploy
  - mkdir filesToDeploy/dist
  - cp index.html filesToDeploy/index.html
  - cp dist/bundle.js filesToDeploy/dist/bundle.js
deploy:
  provider: pages
  skip_cleanup: true
  local_dir: filesToDeploy
  github_token: $DEPLOY_TOKEN
  on:
    branch: master

Use NodeJS 8 for CI build
Use NodeJS 8 for CI build
