-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.releaserc.json
More file actions
42 lines (42 loc) · 1.33 KB
/
Copy path.releaserc.json
File metadata and controls
42 lines (42 loc) · 1.33 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
{
"branches": ["master", { "name": "develop", "prerelease": "dev" }],
"tagFormat": "v${version}",
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits",
"releaseRules": [
{ "type": "feat", "release": "minor" },
{ "type": "fix", "release": "patch" },
{ "type": "refactor", "release": "patch" }
]
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits",
"parserOpts": { "noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"] },
"presetConfig": {
"types": [
{ "type": "feat", "section": "Features" },
{ "type": "fix", "section": "Bug Fixes" },
{ "type": "refactor", "section": "重构", "hidden": false }
]
}
}
],
["@semantic-release/changelog", { "changelogFile": "CHANGELOG.md" }],
["@semantic-release/exec", { "prepareCmd": "ts-node config/bump-extension-json.ts ${nextRelease.version}" }],
[
"@semantic-release/git",
{
"assets": ["CHANGELOG.md", "extension.json", "package.json", "package-lock.json"],
"message": "chore: release ${nextRelease.version} [skip ci]"
}
],
["@semantic-release/exec", { "prepareCmd": "npm run build" }],
["@semantic-release/github", { "releaseName": "${nextRelease.version}", "assets": [{ "path": "build/dist/*.eext" }] }]
]
}