-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease.config.mjs
More file actions
32 lines (32 loc) · 880 Bytes
/
release.config.mjs
File metadata and controls
32 lines (32 loc) · 880 Bytes
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
export default {
branches: [
{ name: 'main' },
{ name: 'develop', prerelease: 'beta' },
{
name: 'feature/*',
prerelease: '${name.replace(/^feature\\//, "").replace(/[^a-zA-Z0-9-]/g, "-")}',
},
{
name: 'fix/*',
prerelease: '${name.replace(/^fix\\//, "").replace(/[^a-zA-Z0-9-]/g, "-")}',
},
{
name: 'hotfix/*',
prerelease: 'hotfix-${name.replace(/^hotfix\\//, "").replace(/[^a-zA-Z0-9-]/g, "-")}',
},
],
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
'@semantic-release/changelog',
'@semantic-release/npm',
'@semantic-release/github',
[
'@semantic-release/git',
{
assets: ['CHANGELOG.md', 'package.json', 'pnpm-lock.yaml'],
message: 'chore(release): ${nextRelease.version} [skip ci]',
},
],
],
};