Skip to content

Commit

Permalink
Setup travis auto release to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
rwillians committed Jul 1, 2017
1 parent 0bd6353 commit 2a931c9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,18 @@ node_js:
- '7.10'
- '8.0'
- '8.1'

cache:
directories:
- node_modules
directories:
- node_modules
script:
- yarn lint
- yarn test
after_script: yarn add coveralls && yarn coverage | coveralls

deploy:
provider: npm
email: $NPM_EMAIL_ADDRESS
api_key: $NPM_TOKEN
on:
tags: true
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"version": "1.0.0",
"description": "A wrapper to async route function for expressjs which makes sure all async errors are passed to the next middleware",
"main": "index.js",
"engines": [
"node >= 7.6.0"
],
"scripts": {
"coverage": "nyc report --reporter=text-lcov --include index.js yarn test",
"lint": "standard index.js && standard specs/**.spec.js --global describe --global context --global it --global specify --global before --global after --global beforeEach --global afterEach --global expect",
Expand Down

0 comments on commit 2a931c9

Please sign in to comment.