From 094e7534be656146f50993fd58888f46038aeceb 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 37912c8..bd3f892 100644 --- a/.travis.yml +++ b/.travis.yml @@ -49,3 +49,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 56b201f..b77337c 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,12 @@ "atom-package-deps": "^4.5.0" }, "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", @@ -38,6 +44,7 @@ "language-r" ], "scripts": { + "commitmsg": "commitlint -e $GIT_PARAMS", "test": "apm test", "lint": "eslint ." }, @@ -68,5 +75,13 @@ "node": true, "browser": true } + }, + "release": { + "extends": "@semantic-release/apm-config" + }, + "commitlint": { + "extends": [ + "@commitlint/config-conventional" + ] } -} +} \ No newline at end of file