diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..245437c --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +language: node_js +cache: + directories: + - ~/.npm +notifications: + email: false +node_js: + - '9' + - '8' +after_success: + - npm run semantic-release +branches: + except: + - /^v\d+\.\d+\.\d+$/ diff --git a/package.json b/package.json index 90def98..80a5a3e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "depnames", - "version": "1.0.0", + "version": "0.0.0-development", "main": "index.js", "license": "MIT", "description": "Fetch a list of dependency names for a given npm package", @@ -15,16 +15,18 @@ "mocha": "^4.0.1", "nixt": "^0.5.0", "standard": "^10.0.3", - "standard-markdown": "^4.0.2" + "standard-markdown": "^4.0.2", + "semantic-release": "^8.2.0" }, "engines": { "node": ">=8" }, "scripts": { - "test": "mocha && standard --fix && standard-markdown" + "test": "mocha && standard --fix && standard-markdown", + "semantic-release": "semantic-release pre && npm publish && semantic-release post" }, "bin": { "depnames": "cli.js" }, "preferGlobal": true -} \ No newline at end of file +}