From be8ea134a9e83d48864edc786b95d2d6b59e4e1c 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 2de6050..ed3fcce 100644 --- a/.travis.yml +++ b/.travis.yml @@ -43,3 +43,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 cbf91e4..dd82fef 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "atom": ">=1.0.0 <2.0.0" }, "scripts": { + "commitmsg": "commitlint -e $GIT_PARAMS", "test": "apm test", "lint": "eslint ." }, @@ -30,6 +31,12 @@ "jsonlint": "~1.6.2" }, "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" @@ -67,5 +74,13 @@ "1.0.0": "provideLinter" } } + }, + "release": { + "extends": "@semantic-release/apm-config" + }, + "commitlint": { + "extends": [ + "@commitlint/config-conventional" + ] } -} +} \ No newline at end of file