-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.releaserc.cjs
More file actions
37 lines (32 loc) · 1.01 KB
/
.releaserc.cjs
File metadata and controls
37 lines (32 loc) · 1.01 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
module.exports = {
branches: [
'main'
],
plugins: [
// Analyze commits to determine release type
// While in 0.x, breaking changes bump minor (not major) per semver spec
['@semantic-release/commit-analyzer', {
releaseRules: [
{ breaking: true, release: 'minor' },
{ type: 'feat', release: 'minor' },
{ type: 'fix', release: 'patch' },
{ type: 'perf', release: 'patch' },
{ type: 'refactor', release: 'patch' },
]
}],
// Generate release notes
'@semantic-release/release-notes-generator',
// Update version in package.json and publish to npm with provenance
['@semantic-release/npm', { provenance: true }],
// Commit the version changes
[
'@semantic-release/git',
{
assets: ['package.json', 'package-lock.json'],
message: 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}'
}
],
// Create GitHub release
'@semantic-release/github'
]
};