-
Notifications
You must be signed in to change notification settings - Fork 9
/
.releaserc.json
64 lines (64 loc) · 1.59 KB
/
.releaserc.json
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
{
"branches": ["master"],
"verifyConditions": ["@semantic-release/changelog", "@semantic-release/github"],
"verifyConfig": ["@semantic-release/github"],
"prepare": [
{
"path": "@semantic-release/exec",
"cmd": "node ./ci/getChangelog.js ${lastRelease.version}"
},
{
"path": "@semantic-release/changelog",
"changelogFile": "static/changelog.md"
},
{
"path": "@semantic-release/exec",
"cmd": "node ./ci/version.js ${nextRelease.version} ${commits[0].commit.short} ${commits[0].commit.long}"
},
{
"path": "@semantic-release/exec",
"cmd": "npm run build"
},
{
"path": "@semantic-release/exec",
"cmd": "cd dist; zip -r ../release.zip *"
}
],
"publish": [
{
"path": "@semantic-release/github",
"assets": [
{
"path": "static/changelog.md",
"label": "Changelog"
},
{ "path": "release.zip", "label": "WebApp-${nextRelease.gitTag}.zip" }
]
},
{
"path": "@semantic-release/exec",
"cmd": "echo \"::set-output name=RELEASED::true\""
},
{
"path": "@semantic-release/exec",
"cmd": "echo \"::set-output name=VERSION::${nextRelease.version}\""
}
],
"fail": ["@semantic-release/github"],
"success": ["@semantic-release/github"],
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "angular",
"releaseRules": [
{
"type": "trans",
"release": "patch"
}
]
}
],
"@semantic-release/release-notes-generator"
]
}