-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.releaserc.json
More file actions
63 lines (63 loc) · 1.92 KB
/
.releaserc.json
File metadata and controls
63 lines (63 loc) · 1.92 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
"branches": ["main"],
"tagFormat": "v${version}",
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits",
"releaseRules": [
{ "type": "feat", "release": "minor" },
{ "type": "fix", "release": "patch" },
{ "type": "perf", "release": "patch" },
{ "type": "refactor", "release": "patch" },
{ "breaking": true, "release": "major" }
]
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits",
"presetConfig": {
"types": [
{ "type": "feat", "section": "Новые возможности" },
{ "type": "fix", "section": "Исправления" },
{ "type": "perf", "section": "Производительность" },
{ "type": "refactor", "section": "Рефакторинг" },
{ "type": "docs", "section": "Документация" },
{ "type": "ci", "section": "CI/CD" }
]
}
}
],
"@semantic-release/changelog",
[
"@semantic-release/exec",
{
"prepareCmd": "node -e \"const m=JSON.parse(require('fs').readFileSync('manifest.json','utf8'));m.version='${nextRelease.version}';require('fs').writeFileSync('manifest.json',JSON.stringify(m,null,2)+'\\n')\""
}
],
[
"@semantic-release/git",
{
"assets": ["CHANGELOG.md", "manifest.json"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
[
"@semantic-release/github",
{
"successComment": false,
"failComment": false,
"assets": [
{
"path": "dist/huntflow-menu-organizer.zip",
"name": "HFMO-v${nextRelease.version}.zip",
"label": "HFMO-v${nextRelease.version}.zip"
}
]
}
]
]
}