-
Notifications
You must be signed in to change notification settings - Fork 11
/
release.config.js
40 lines (40 loc) · 1.13 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
29
30
31
32
33
34
35
36
37
38
39
40
module.exports = {
branches: [
'main',
'release/*',
{
name: 'rc',
prerelease: true
}
],
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
['@semantic-release/changelog', { changelogFile: 'CHANGELOG.md' }],
['@semantic-release/exec', { "prepareCmd": './publish.sh ${nextRelease.version}' }],
[
'@semantic-release/git',
{
assets: [
'package.json',
'package-lock.json',
'CHANGELOG.md',
'docs/**/*',
],
message: 'chore(release): release ${nextRelease.version}\n\n${nextRelease.notes}',
},
],
// [
// 'semantic-release-slack-bot',
// {
// notifyOnSuccess: true,
// notifyOnFail: true,
// markdownReleaseNotes: true,
// onSuccessTemplate: {
// text:
// "A new version of `$package_name` successfully released!\nVersion: `$npm_package_version`\nTag: $repo_url/releases/tag/v$npm_package_version\n\nRelease notes:\n$release_notes",
// },
// },
// ],
],
};