From 12826ac77d4dbbb348a384321ab96313e80bde67 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 29bc64a..add4a3d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -37,3 +37,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 33ebe7b..0e56e50 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "linter" ], "scripts": { + "commitmsg": "commitlint -e $GIT_PARAMS", "lint": "coffeelint lib && eslint spec" }, "engines": { @@ -36,6 +37,12 @@ } }, "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", "coffeelint": "^2.0.0", "eslint": "^4.6.0", "eslint-config-airbnb-base": "^12.0.0", @@ -50,5 +57,13 @@ "env": { "node": true } + }, + "release": { + "extends": "@semantic-release/apm-config" + }, + "commitlint": { + "extends": [ + "@commitlint/config-conventional" + ] } -} +} \ No newline at end of file