-
Notifications
You must be signed in to change notification settings - Fork 0
/
release.config.js
25 lines (25 loc) · 1015 Bytes
/
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
module.exports = {
branches: [ // updated to include "main"
'+([0-9])?(.{+([0-9]),x}).x',
'main',
'next',
'next-major',
{name: 'beta', prerelease: true},
{name: 'alpha', prerelease: true},
],
plugins: [
['@semantic-release/commit-analyzer', {
preset: 'conventionalcommits',
}],
['@semantic-release/release-notes-generator', {
preset: 'conventionalcommits',
}],
'@semantic-release/changelog', // updates changelog file.
'@semantic-release/npm', // updates package.json with new version.
['@semantic-release/git', { // create git commit for version, including any files changed from previous plugins.
// remove [skip ci] so it deploys the new version to gh-pages.
message: 'chore(release): ${nextRelease.version}\n\n${nextRelease.notes}',
}],
'@semantic-release/github', // creates github release, adds comments to issues/prs.
],
};