forked from lokesh-coder/toppy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.releaserc
56 lines (56 loc) · 1.72 KB
/
.releaserc
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
{
"branch": "master",
"plugins": [
[
"@semantic-release/exec",
{
"prepareCmd": "npm run archive:app -- ${nextRelease.version} && chmod a+x ./scripts/version.sh && ./scripts/version.sh ${nextRelease.version} && cp -r ./README.md ./dist/toppy && npx json -I -f package.json -e 'this.version=\"${nextRelease.version}\"'",
"successCmd": "npm run postpublish -- ${nextRelease.version}"
}
],
[
"@semantic-release/commit-analyzer",
{
"releaseRules": [
{ "type": "feat", "release": "minor" },
{ "type": "fix", "release": "patch" },
{ "type": "perf", "release": "patch" },
{ "breaking": true, "release": "major" },
{ "revert": true, "release": "patch" },
{ "type": "docs", "release": "patch" },
{ "type": "refactor", "release": "patch" },
{ "type": "style", "release": "patch" }
],
"parserOpts": {
"noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"]
}
}
],
"@semantic-release/changelog",
"@semantic-release/release-notes-generator",
[
"@semantic-release/npm",
{
"npmPublish": true,
"tarballDir": "dist/toppy",
"pkgRoot": "dist/toppy"
}
],
"@semantic-release/github",
[
"@semantic-release/git",
{
"assets": [
"projects/toppy/package.json",
"package.json",
"package-lock.json",
"CHANGELOG.md",
"docs/environments/version.ts",
"docs/assets/archived-versions.json"
],
"message": ":fire: chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
]
],
"preset": "angular"
}