diff --git a/.travis.yml b/.travis.yml index 2506fe0..99e51d3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/package.json b/package.json index 8e2b420..d66999b 100644 --- a/package.json +++ b/package.json @@ -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",