diff --git a/.travis.yml b/.travis.yml index 22d413c..61c1fba 100644 --- a/.travis.yml +++ b/.travis.yml @@ -48,3 +48,15 @@ addons: - git - libgnome-keyring-dev - fakeroot + +node_js: lts/* + +after_success: + # Add apm to the PATH + - export PATH=${PATH}:${HOME}/atom/usr/bin/ + +deploy: + provider: script + skip_cleanup: true + script: + - npx semantic-release diff --git a/package.json b/package.json index 7ad2573..c26cf54 100644 --- a/package.json +++ b/package.json @@ -34,12 +34,19 @@ "language-puppet" ], "devDependencies": { + "@commitlint/cli": "^6.1.3", + "@commitlint/config-conventional": "^6.1.3", + "@commitlint/travis-cli": "^6.1.3", + "@semantic-release/apm-config": "^2.0.1", + "husky": "^0.14.3", + "semantic-release": "^15.1.7", "eslint": "^4.6.0", "eslint-config-airbnb-base": "^12.0.0", "eslint-plugin-import": "^2.7.0", "jasmine-fix": "^1.3.0" }, "scripts": { + "commitmsg": "commitlint -e $GIT_PARAMS", "test": "apm test", "lint": "eslint ." }, @@ -252,5 +259,13 @@ "type": "boolean", "default": false } + }, + "release": { + "extends": "@semantic-release/apm-config" + }, + "commitlint": { + "extends": [ + "@commitlint/config-conventional" + ] } -} +} \ No newline at end of file