Skip to content

Commit

Permalink
🩹 (semantic) add code to releaseRules for semver (dependabot 🤖️)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeFitz committed May 18, 2021
1 parent d590743 commit 594ac03
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions packages/semantic/release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,29 @@ 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,
semver: types[type].semver,
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
})

Expand Down

0 comments on commit 594ac03

Please sign in to comment.