From efde729b81d3e20461fed1ca082021f51b6d49c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tyll=20Wei=C3=9F?= Date: Mon, 6 Nov 2017 10:07:04 +0100 Subject: [PATCH] TASK: Integrate semantic-release --- .travis.yml | 5 +++++ package.json | 13 +++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1447c43..4f105cc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,3 +11,8 @@ before_script: - greenkeeper-lockfile-update after_script: - greenkeeper-lockfile-upload +after_success: + - npm run semantic-release +branches: + except: + - /^v\d+\.\d+\.\d+$/ diff --git a/package.json b/package.json index 4f52c42..099cd52 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,9 @@ "flow-typed-install": "flow-typed install --ignoreDeps=peer --overwrite", "prepare": "npm run flow-typed-install || true", "prepublishOnly": "npm run build", - "precommit": "lint-staged && npm test" + "precommit": "lint-staged && npm test", + "semantic-release": + "semantic-release pre && npm publish && semantic-release post" }, "lint-staged": { "**/*.{js,json,css}": ["prettier --write", "git add"] @@ -53,6 +55,8 @@ "@immowelt/eslint-config-immowelt-react": "^2.0.2", "@immowelt/jest-preset-node": "^1.0.0", "@immowelt/styleguide-javascript": "^1.0.6", + "@inkdpixels/commit-analyzer": "^1.0.0", + "@inkdpixels/release-notes-generator": "^1.0.0", "babel-cli": "^6.26.0", "eslint": "^4.9.0", "flow-bin": "^0.58.0", @@ -63,11 +67,16 @@ "lint-staged": "^4.1.2", "mock-fs": "^4.4.2", "prettier": "^1.6.1", - "rimraf": "^2.6.1" + "rimraf": "^2.6.1", + "semantic-release": "^8.2.0" }, "jest": { "preset": "@immowelt/jest-preset-node" }, + "release": { + "analyzeCommits": "@inkdpixels/commit-analyzer", + "generateNotes": "@inkdpixels/release-notes-generator" + }, "repository": { "type": "git", "url": "https://github.com/ImmoweltGroup/find-config-up.git"