Skip to content

Commit

Permalink
fix(master): cleanup travis deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
dskline committed Aug 7, 2017
1 parent da72f73 commit f08db75
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
21 changes: 20 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,28 @@ node_js:
- 'stable'
before_script:
- npm prune
script:
- npm run build
- npm test
after_success:
- cat ./coverage/lcov.info | node node_modules/.bin/coveralls
- npm run semantic-release
before_deploy:
- semantic-release pre
deploy:
- provider: npm
email: dskline1@gmail.com
api_key: $NPM_TOKEN
skip_cleanup: true
on:
branch: master
- provider: releases
api_key: $GH_TOKEN
file: dist/image-to-array.js
skip_cleanup: true
on:
all_branches: true
after_deploy:
- semantic-release post
branches:
except:
- /^v\d+\.\d+\.\d+$/
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
},
"scripts": {
"test": "./node_modules/karma/bin/karma start",
"build": "webpack --config webpack/webpack.base.js --progress",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
"build": "webpack --config webpack/webpack.base.js --progress"
},
"precommit": "build, test",
"devDependencies": {
Expand Down

0 comments on commit f08db75

Please sign in to comment.