From 8ee0e8712bdfd4a336ccc6f05c9b379af782505e Mon Sep 17 00:00:00 2001 From: Kepler Sticka-Jones Date: Sat, 14 Apr 2018 22:42:40 -0600 Subject: [PATCH] build(release): initial adoption of semantic-release and commitlint --- .travis.yml | 12 ++++++++++++ package.json | 23 +++++++++++++++++++++-- 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6e56dc3..ce65f80 100644 --- a/.travis.yml +++ b/.travis.yml @@ -49,3 +49,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 dd957ee..e24ed06 100644 --- a/package.json +++ b/package.json @@ -21,5 +21,24 @@ }, "package-deps": [ "linter:2.0.0" - ] -} + ], + "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