-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.releaserc.js
82 lines (78 loc) · 2.54 KB
/
.releaserc.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
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
module.exports = {
ci: false,
branches: ["main"],
plugins: [
[
"@semantic-release/commit-analyzer",
{
preset: "angular",
releaseRules: [
{ type: "feat", release: "minor" },
{ type: "enhance", release: "minor" },
{ type: "refactor", release: "patch" },
{ type: "style", release: "patch" },
{ type: "perf", release: "patch" },
{ type: "change", release: "patch" },
{ type: "fix", release: "patch" },
{ scope: "skip", release: false },
],
parserOpts: {
noteKeywords: ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"],
},
},
],
[
"@semantic-release/release-notes-generator",
{
preset: "conventionalcommits",
presetConfig: {
types: [
{ type: "feat", section: "✨ New & Improved", hidden: false },
{ type: "enhance", section: "✨ New & Improved", hidden: true },
{ type: "refactor", section: "✨ New & Improved", hidden: true },
{ type: "style", section: "💄 Styling & Polish", hidden: false },
{ type: "fix", section: "🤘 Fixes & Updates", hidden: false },
{ type: "perf", section: "🤘 Fixes & Updates", hidden: false },
{ type: "chore", section: "🤘 Fixes & Updates", hidden: false },
{ type: "change", section: "🤘 Fixes & Updates", hidden: false },
{ type: "revert", section: "🤘 Fixes & Updates", hidden: false },
{ type: "docs", section: "📘 Docs", hidden: false },
{ type: "devx", section: "🛠 Development Workflow", hidden: false },
{ type: "test", hidden: true },
{ type: "build", hidden: true },
{ type: "ci", hidden: true },
],
},
parserOpts: {
noteKeywords: ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"],
},
writerOpts: {
commitsSort: ["subject", "scope"],
headerPartial: `## Version {{version}}`,
},
},
],
[
"@semantic-release/changelog",
{
changelogTitle: "Changelog\n===",
},
],
[
"@semantic-release/npm",
{
npmPublish: true,
tarballDir: "dist",
},
],
["@semantic-release/github"],
[
"@semantic-release/git",
{
assets: ["CHANGELOG.md", "package.json", "package-lock.json"],
message:
"Release v${nextRelease.version}\n\n${nextRelease.notes}\n<!--SKIP CI-->",
},
],
],
};