From 2a931c9b043acc84f098c0399f96fddcc120d4c0 Mon Sep 17 00:00:00 2001 From: Rafael Willians Date: Sat, 1 Jul 2017 01:04:08 -0300 Subject: [PATCH] Setup travis auto release to npm --- .travis.yml | 12 ++++++++++-- package.json | 3 +++ 2 files changed, 13 insertions(+), 2 deletions(-) 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",