diff --git a/.travis.yml b/.travis.yml index d24be87..f2c116c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -37,3 +37,15 @@ addons: branches: only: - master + +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 2eb7d12..f3197f3 100644 --- a/package.json +++ b/package.json @@ -88,5 +88,24 @@ "default": [], "order": 4 } + }, + "release": { + "extends": "@semantic-release/apm-config" + }, + "commitlint": { + "extends": [ + "@commitlint/config-conventional" + ] + }, + "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" + }, + "scripts": { + "commitmsg": "commitlint -e $GIT_PARAMS" } -} +} \ No newline at end of file