-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease.config.cjs
More file actions
59 lines (52 loc) · 1.35 KB
/
release.config.cjs
File metadata and controls
59 lines (52 loc) · 1.35 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
const { SLACK_DEVOPS_WEBHOOK } = process.env;
/* eslint-disable no-template-curly-in-string */
/** @type {import('@types/semantic-release').Options} */
module.exports = {
dryRun: false,
ci: true,
debug: false,
tagFormat: 'v${version}',
preset: 'angular',
branches: [
// Maintenance releases to existing releases
// N.N.x or N.x.x or N.x
'+([0-9])?(.{+([0-9]),x}).x',
// Stable release to default branch
'master',
// Upcoming release
'next',
// Pre-release candidate
{ name: 'release', channel: 'rc', prerelease: 'rc' }
],
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
'@semantic-release/changelog',
[
'@semantic-release/exec',
{
// Update README.md
prepareCmd: 'yarn oclif readme'
}
],
'@semantic-release/npm',
'@semantic-release/github',
[
'@semantic-release/git',
{
assets: ['CHANGELOG.md', 'package.json', 'README.md'],
message:
// Add `[skip ci]` in message to prevent triggering a pipeline
'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}'
}
],
[
'semantic-release-slack-bot',
{
notifyOnSuccess: true,
notifyOnFail: true,
slackWebhook: SLACK_DEVOPS_WEBHOOK
}
]
]
};