Skip to content

Commit 7a30927

Browse files
Merge pull request #162 from emulsify-ds/develop
fix: workaround for parserOpts not a function error during release
2 parents 8d3a344 + d507c90 commit 7a30927

1 file changed

Lines changed: 21 additions & 11 deletions

File tree

release.config.cjs

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,28 @@ module.exports = {
33
branches: ['main'],
44
repositoryUrl: 'git@github.com:emulsify-ds/emulsify-core.git',
55
plugins: [
6-
['@semantic-release/commit-analyzer', {
7-
preset: 'angular',
8-
releaseRules: [
9-
{ type: 'feat', release: 'minor' },
10-
{ type: 'fix', release: 'patch' }
11-
],
12-
parserOpts: {
13-
noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES']
6+
[
7+
'@semantic-release/commit-analyzer',
8+
{
9+
preset: 'angular',
10+
parserOpts: {
11+
noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES', 'BREAKING']
12+
}
1413
}
15-
}],
16-
'@semantic-release/release-notes-generator',
14+
],
15+
[
16+
'@semantic-release/release-notes-generator',
17+
{
18+
preset: 'angular',
19+
parserOpts: {
20+
noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES', 'BREAKING']
21+
},
22+
writerOpts: {
23+
commitsSort: ['subject', 'scope']
24+
}
25+
}
26+
],
1727
['@semantic-release/npm', { npmPublish: false }],
1828
'@semantic-release/github'
1929
]
20-
};
30+
}

0 commit comments

Comments
 (0)