diff --git a/.travis.yml b/.travis.yml index b801639..41a149a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,8 +7,16 @@ addons: - ubuntu-toolchain-r-test packages: - g++-4.8 - +cache: + directories: + - node_modules +after_success: + - npm run semantic-release node_js: - - "4.1" - - "0.12" + - "6" + - "4" - "0.10" +branches: + except: + # ignore git tags created by semantic-release, like "v1.2.3" + - /^v\d+\.\d+\.\d+$/ diff --git a/package.json b/package.json index fde7dcd..a931b0b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gumbo-parser", - "version": "0.2.2", + "version": "0.0.0-semantically-released", "author": "Karl Westin ", "contributors": [ { @@ -10,6 +10,7 @@ ], "description": "Parsing HTML using google gumbo parser", "scripts": { + "semantic-release": "semantic-release pre && npm publish && semantic-release post", "test": "node test/test.js" }, "repository": { @@ -22,6 +23,7 @@ "parser" ], "devDependencies": { + "semantic-release": "^4.3.5", "node-gyp": "3.0.x" }, "license": "MIT",