From 73a92ba3d53b0dc79b25fa463c075aa7e05c6bbc Mon Sep 17 00:00:00 2001 From: Kepler Sticka-Jones Date: Sat, 14 Apr 2018 22:42:44 -0600 Subject: [PATCH] build(release): initial adoption of semantic-release and commitlint --- .travis.yml | 12 ++++++++++++ package.json | 17 ++++++++++++++++- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 82ab03e..fff7072 100644 --- a/.travis.yml +++ b/.travis.yml @@ -67,3 +67,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 cd8d5a4..51ed479 100644 --- a/package.json +++ b/package.json @@ -38,10 +38,17 @@ } }, "scripts": { + "commitmsg": "commitlint -e $GIT_PARAMS", "test": "apm test", "lint": "eslint ." }, "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.9.0", "eslint-config-airbnb-base": "^12.1.0", "eslint-plugin-import": "^2.7.0", @@ -66,5 +73,13 @@ "env": { "node": true } + }, + "release": { + "extends": "@semantic-release/apm-config" + }, + "commitlint": { + "extends": [ + "@commitlint/config-conventional" + ] } -} +} \ No newline at end of file