-
Notifications
You must be signed in to change notification settings - Fork 1
/
release.config.js
39 lines (39 loc) · 1.17 KB
/
release.config.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
module.exports = {
"branches" : "master",
"tagFormat": "v${version}",
"plugins": [
["@semantic-release/commit-analyzer", {
"preset": "angular",
"releaseRules" : [
{"type": "docs", "release": "patch"},
{"type": "docs", "scope": "README", "release": false}
]
}],
["@semantic-release/release-notes-generator", {
"writerOpts": {
"commitsSort": ["scope", "subject"]
}
}],
["@semantic-release/changelog", {
"changelogFile": "CHANGELOG.md"
}],
["@semantic-release/npm", {
"npmPublish": false,
"pkgRoot": `Assets/${process.env.PROJECT_NAME}` }],
["@semantic-release/git", {
"assets": [`Assets/${process.env.PROJECT_NAME}/package.json`, "CHANGELOG.md"],
"message": "chore(release): new release ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}],
["@iam1337/create-unitypackage", {
"packageRoot": `Assets/${process.env.PROJECT_NAME}`,
"projectRoot": "./",
"output": `${process.env.PROJECT_NAME}.unitypackage`
}],
["@semantic-release/github", {
"assets": [
{"path": `${process.env.PROJECT_NAME}.unitypackage`, "label": `${process.env.PROJECT_NAME} v\${nextRelease.version}`}
]
}]
],
"preset": "angular"
}