From 73b4b0bcac50466c3c1a5d74799e75ae3b8462bf Mon Sep 17 00:00:00 2001 From: Boris Rorsvort Date: Wed, 13 Nov 2019 11:00:26 +0100 Subject: [PATCH] feat: Add semantic versioning realease script --- CHANGELOG.md | 0 package.json | 22 +++++++++++++++++++++- yarn.lock | 36 +++++++++++++++++++++++++++++++----- 3 files changed, 52 insertions(+), 6 deletions(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..e69de29 diff --git a/package.json b/package.json index 0f5d476..4309b88 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@blsq/manager-ui", - "version": "0.0.1", + "version": "1.0.0", "description": "Dhis2 manager apps common component library", "author": "blsq", "license": "MIT", @@ -19,6 +19,21 @@ "deploy": "storybook-to-ghpages", "storybook": "start-storybook" }, + "release": { + "plugins": [ + "@semantic-release/commit-analyzer", + "@semantic-release/release-notes-generator", + [ + "@semantic-release/npm", + { + "npmPublish": true + } + ], + "@semantic-release/changelog", + "@semantic-release/git" + ], + "branch": "master" + }, "peerDependencies": { "@material-ui/core": "^4.5.2", "@material-ui/icons": "^4.5.1", @@ -51,6 +66,11 @@ "@material-ui/core": "^4.5.2", "@material-ui/icons": "^4.5.1", "@material-ui/styles": "^4.5.2", + "@semantic-release/changelog": "^3.0.5", + "@semantic-release/commit-analyzer": "^6.3.3", + "@semantic-release/git": "^7.0.18", + "@semantic-release/npm": "^5.3.4", + "@semantic-release/release-notes-generator": "^7.3.2", "@storybook/addon-knobs": "^5.2.5", "@storybook/addon-storysource": "^5.2.5", "@storybook/react": "^5.2.5", diff --git a/yarn.lock b/yarn.lock index f99df03..828136a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1636,7 +1636,17 @@ react-lifecycles-compat "^3.0.4" warning "^3.0.0" -"@semantic-release/commit-analyzer@^6.1.0": +"@semantic-release/changelog@^3.0.5": + version "3.0.5" + resolved "https://registry.yarnpkg.com/@semantic-release/changelog/-/changelog-3.0.5.tgz#37423eee40f550acb8e09ff1d951ba79263e3b2d" + integrity sha512-/U44eK5qL2olevbEi+GrJxq1lNGUABChqK58A3SkiDsZS6AoGO8CJHQ7OG0zx+spxwkY4TevZ85Whz/hYyO+5w== + dependencies: + "@semantic-release/error" "^2.1.0" + aggregate-error "^3.0.0" + fs-extra "^8.0.0" + lodash "^4.17.4" + +"@semantic-release/commit-analyzer@^6.1.0", "@semantic-release/commit-analyzer@^6.3.3": version "6.3.3" resolved "https://registry.yarnpkg.com/@semantic-release/commit-analyzer/-/commit-analyzer-6.3.3.tgz#885f7e46e2f0aef23a23be0904dbf18d6ece45ca" integrity sha512-Pyv1ZL2u5AIOY4YbxFCAB5J1PEh5yON8ylbfiPiriDGGW6Uu1U3Y8lysMtWu+FUD5x7tSnyIzhqx0+fxPxqbgw== @@ -1648,11 +1658,27 @@ import-from "^3.0.0" lodash "^4.17.4" -"@semantic-release/error@^2.2.0": +"@semantic-release/error@^2.1.0", "@semantic-release/error@^2.2.0": version "2.2.0" resolved "https://registry.yarnpkg.com/@semantic-release/error/-/error-2.2.0.tgz#ee9d5a09c9969eade1ec864776aeda5c5cddbbf0" integrity sha512-9Tj/qn+y2j+sjCI3Jd+qseGtHjOAeg7dU2/lVcqIQ9TV3QDaDXDYXcoOHU+7o2Hwh8L8ymL4gfuO7KxDs3q2zg== +"@semantic-release/git@^7.0.18": + version "7.0.18" + resolved "https://registry.yarnpkg.com/@semantic-release/git/-/git-7.0.18.tgz#f37c076bc094762cb343dab49ab893d31de961e8" + integrity sha512-VwnsGUXpNdvPcsq05BQyLBZxGUlEiJCMKNi8ttLvZZAhjI1mAp9dwypOeyxSJ5eFQ+iGMBLdoKF1LL0pmA/d0A== + dependencies: + "@semantic-release/error" "^2.1.0" + aggregate-error "^3.0.0" + debug "^4.0.0" + dir-glob "^3.0.0" + execa "^3.2.0" + fs-extra "^8.0.0" + globby "^10.0.0" + lodash "^4.17.4" + micromatch "^4.0.0" + p-reduce "^2.0.0" + "@semantic-release/github@^5.1.0": version "5.5.5" resolved "https://registry.yarnpkg.com/@semantic-release/github/-/github-5.5.5.tgz#4666367f16d8ad91fd1d3c71a7238498de14ec38" @@ -1675,7 +1701,7 @@ p-retry "^4.0.0" url-join "^4.0.0" -"@semantic-release/npm@^5.0.5": +"@semantic-release/npm@^5.0.5", "@semantic-release/npm@^5.3.4": version "5.3.4" resolved "https://registry.yarnpkg.com/@semantic-release/npm/-/npm-5.3.4.tgz#2998cd9455aaedf278334d4a5b56f8e0b715919d" integrity sha512-XjITNRA/oOpJ7BfHk/WaOHs1WniYBszTde/bwADjjk1Luacpxg87jbDQVVt/oA3Zlx+MelxACRIEuRiPC5gu8g== @@ -1693,7 +1719,7 @@ registry-auth-token "^4.0.0" tempy "^0.3.0" -"@semantic-release/release-notes-generator@^7.1.2": +"@semantic-release/release-notes-generator@^7.1.2", "@semantic-release/release-notes-generator@^7.3.2": version "7.3.2" resolved "https://registry.yarnpkg.com/@semantic-release/release-notes-generator/-/release-notes-generator-7.3.2.tgz#a858b35c9c62f780d285aeaca8ef9891a62c2f9c" integrity sha512-vYGydZPoQqL4aJOsaqXTZIekRb3aa/OlxlEVUvyrWWlNGqmQ1T7NUOos9eoN5DBCEuk6PwDrxPbhzgswxcvprQ== @@ -11427,7 +11453,7 @@ micromatch@^3.1.10, micromatch@^3.1.4: snapdragon "^0.8.1" to-regex "^3.0.2" -micromatch@^4.0.2: +micromatch@^4.0.0, micromatch@^4.0.2: version "4.0.2" resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.2.tgz#4fcb0999bf9fbc2fcbdd212f6d629b9a56c39259" integrity sha512-y7FpHSbMUMoyPbYUSzO6PaZ6FyRnQOpHuKwbo1G+Knck95XVU4QAiKdGEnj5wwoS7PlOgthX/09u5iFJ+aYf5Q==