.travis.yml
language: node_js
cache:
directories:
- node_modules
notifications:
email: false
node_js:
- 'node'
before_install:
- npm install -g npm-install-peers
install:
- npm prune
- npm install
- npm-install-peers
script:
- npm run lint
- HTTP_HOST=https://resourcefulhumans.github.io/transactional-emails/ make build
after_success:
- npm run semantic-release
- cd build
- git init
- git config user.name "Travis CI"
- git config user.email "jarvis@resourceful-humans.com"
- git add .
- git commit -m "Deploy to GitHub Pages"
- git push --force --quiet "https://${GH_TOKEN}@github.com/ResourcefulHumans/transactional-emails.git" master:gh-pages > /dev/null 2>&1
branches:
except:
- "/^v\\d+\\.\\d+\\.\\d+$/"