This repository was archived by the owner on Apr 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease.config.js
More file actions
49 lines (49 loc) · 1.3 KB
/
release.config.js
File metadata and controls
49 lines (49 loc) · 1.3 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
module.exports = {
branches: [
{ name: 'develop', prerelease: true },
{ name: 'release', prerelease: true },
'main'
],
plugins: [
// Analyzes commit messages and
// determines the version
[
'@semantic-release/commit-analyzer',
{
releaseRules: [
{ type: 'docs', scope: 'README', release: 'patch' },
{ type: 'refactor', release: 'patch' },
{ type: 'style', release: 'patch' },
{ scope: 'no-release', release: false }
],
parserOpts: {
noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES']
}
}
],
// Generates a changelog file
['@semantic-release/changelog', { changelogFile: 'CHANGELOG.md' }],
// Builds release notes from commit messages
'@semantic-release/release-notes-generator',
// Commits, tags, and pushes
[
'@semantic-release/git',
{
assets: [
'dist',
'package.json',
'CHANGELOG.md',
'LICENSE',
'README.md'
],
message:
'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}'
}
],
// Updates the version
'@semantic-release/npm',
// Creates the release on GitHub
// and posts release notes
'@semantic-release/github'
]
};