From 594ac03c2b43f224830863cd1534ecc4cbec3f68 Mon Sep 17 00:00:00 2001 From: Jerome Fitzgerald Date: Tue, 18 May 2021 09:19:27 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20=20(semantic)=20add=20code=20to?= =?UTF-8?q?=20releaseRules=20for=20semver=20(dependabot=20=F0=9F=A4=96?= =?UTF-8?q?=EF=B8=8F)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/semantic/release.config.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/packages/semantic/release.config.js b/packages/semantic/release.config.js index fc9f7c134..5ee2a263d 100644 --- a/packages/semantic/release.config.js +++ b/packages/semantic/release.config.js @@ -19,7 +19,7 @@ var splitter = new GraphemeSplitter() let typeSpecs = [] const releaseRules = [] -Object.keys(types).map((type, index) => { +Object.keys(types).map((type, _index) => { typeSpecs.push({ emoji: types[type].emoji, section: title(types[type].commit) + '\n#### ' + types[type].section, @@ -27,15 +27,21 @@ Object.keys(types).map((type, index) => { type: types[type].commit, value: types[type].commit, }) - // @note This needs to cover either scenarios based on repo implementation + /** + * @note Need to cover (code|commit|emoji) for semver based on repo choice + */ releaseRules.push({ - release: types[type].semver, - type: types[type].emoji, + release: types[type].code, + type: types[type].commit, }) releaseRules.push({ release: types[type].semver, type: types[type].commit, }) + releaseRules.push({ + release: types[type].semver, + type: types[type].emoji, + }) return true })