-
Notifications
You must be signed in to change notification settings - Fork 0
/
release.config.js
28 lines (27 loc) · 1.07 KB
/
release.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
const githubPlugin = "@semantic-release/github";
module.exports = {
branches: "main",
tagFormat: "v${version}",
preset: "conventionalcommits",
presetConfig: {
// https://github.com/conventional-changelog/conventional-changelog-config-spec/blob/master/versions/2.0.0/README.md
},
// https://github.com/semantic-release/commit-analyzer#configuration
// "releaseRules": [],
plugins: [
["@semantic-release/commit-analyzer", {
preset: "conventionalcommits",
parserOpts: {
// https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-commits-parser#conventionalcommitsparseroptions
mergePattern: "^Merge pull request #(\\d+) from (.*)$",
mergeCorrespondence: ["id", "source"],
noteKeywords: ["BREAKING CHANGE", "BREAKING CHANGES"],
}
}],
["@semantic-release/release-notes-generator", {
releaseRules: [],
}],
"@semantic-release/npm",
githubPlugin,
],
};