scratch-sb1-converter/.travis.yml

32 lines
686 B
YAML
Raw Normal View History

language: node_js
node_js:
- 8
- node
cache:
directories:
- node_modules
install:
- npm install
script:
- commitlint-travis
- npm run build
- npm run test
before_deploy:
- git config --global user.email "$(git log --pretty=format:"%ae" -n1)"
- git config --global user.name "$(git log --pretty=format:"%an" -n1)"
deploy:
- provider: script
on:
branch: develop
2018-12-20 10:54:16 -05:00
node: '8'
skip_cleanup: true
email: $NPM_EMAIL
api_key: $NPM_TOKEN
script: npm run semantic-release
- provider: script
on:
all_branches: true
2018-12-20 10:54:16 -05:00
node: '8'
skip_cleanup: true
script: npm run deploy -- -x -e $TRAVIS_BRANCH -r https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git