mirror of
https://github.com/scratchfoundation/scratch-sb1-converter.git
synced 2024-11-24 08:38:09 -05:00
31 lines
686 B
YAML
31 lines
686 B
YAML
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
|
|
node: '8'
|
|
skip_cleanup: true
|
|
email: $NPM_EMAIL
|
|
api_key: $NPM_TOKEN
|
|
script: npm run semantic-release
|
|
- provider: script
|
|
on:
|
|
all_branches: true
|
|
node: '8'
|
|
skip_cleanup: true
|
|
script: npm run deploy -- -x -e $TRAVIS_BRANCH -r https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
|