diff --git a/.travis.yml b/.travis.yml index 809f18c..1aaac6b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -48,3 +48,15 @@ addons: - fakeroot - git - libsecret-1-dev + +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 42e3d5e..6b01e6d 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "atom": ">=1.7.0 <2.0.0" }, "scripts": { + "commitmsg": "commitlint -e $GIT_PARAMS", "lint": "eslint .", "test": "apm test" }, @@ -24,6 +25,12 @@ "atom-package-deps": "^4.0.1" }, "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", @@ -59,5 +66,13 @@ "node": true, "browser": true } + }, + "release": { + "extends": "@semantic-release/apm-config" + }, + "commitlint": { + "extends": [ + "@commitlint/config-conventional" + ] } -} +} \ No newline at end of file