Skip to content

Commit

Permalink
chore(ci): Setup semantic release (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
GregChan authored Feb 27, 2018
1 parent 7f880f8 commit d54783e
Show file tree
Hide file tree
Showing 3 changed files with 2,319 additions and 429 deletions.
27 changes: 7 additions & 20 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ language:
- node_js

node_js:
- 7
- 8
- 6
- 4

Expand All @@ -20,29 +20,16 @@ branches:
notifications:
slack: smartcar:PGJmjtKFPytU5E2FwsImdVp8

before_install:
- git clone [email protected]:smartcar/build.git $HOME/smartcar-build
- cp $HOME/smartcar-build/resources/Makefile .

install:
- npm update
- npm update --save false
- npm prune

script:
- npm test
- npm run cover
- if [ $TRAVIS_NODE_VERSION = 6 ]; then make create-tag; fi

deploy:
- provider: npm
email: [email protected]
api_key: $NPM_API_TOKEN
on:
branch: master
node: 6
- provider: script
skip_cleanup: true
script: make push-tag
on:
branch: master
node: 6
jobs:
include:
- stage: publish
node_js: 8
script: npm run release
Loading

0 comments on commit d54783e

Please sign in to comment.