forked from SveltyCMS/SveltyCMS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease.config.cjs
More file actions
45 lines (39 loc) · 1.21 KB
/
release.config.cjs
File metadata and controls
45 lines (39 loc) · 1.21 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
/** @type {import('semantic-release').Options} */
const config = {
// branches: Defines which branches trigger releases.
branches: [
'main', // Full, stable releases from the main branch.
{
name: 'next', // Pre-releases from the next branch.
prerelease: 'next' // Pre-releases will have a suffix like -next.1
}
],
plugins: [
// Analyzes commit messages to determine the next version number.
'@semantic-release/commit-analyzer',
// Generates release notes from the commit messages.
'@semantic-release/release-notes-generator',
// Creates or updates a CHANGELOG.md file.
'@semantic-release/changelog',
// Updates the version in package.json.
// We keep publishing to npm disabled as you had it.
[
'@semantic-release/npm',
{
npmPublish: false
}
],
// Creates a GitHub release.
'@semantic-release/github',
// Commits the updated package.json and CHANGELOG.md back to your repo.
// This MUST run AFTER @semantic-release/github to ensure the release is created first.
[
'@semantic-release/git',
{
assets: ['package.json', 'CHANGELOG.md'],
message: 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}'
}
]
]
};
module.exports = config;