-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathrelease.config.cjs
More file actions
36 lines (34 loc) · 1.13 KB
/
release.config.cjs
File metadata and controls
36 lines (34 loc) · 1.13 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
const path = require("path");
const pkg = require(path.resolve("package.json"));
const name = pkg.name;
module.exports = {
branches: ["main"],
tagFormat: name + "-v${version}",
plugins: [
["@semantic-release/commit-analyzer", {
releaseRules: [
{ type: "docs", release: "patch" },
{ type: "refactor", release: "patch" },
{ type: "style", release: "patch" },
{ type: "perf", release: "patch" }
]
}],
"@semantic-release/release-notes-generator",
["@semantic-release/changelog", {
changelogFile: "CHANGELOG.md"
}],
["@semantic-release/exec", {
prepareCmd: 'bash "$(git rev-parse --show-toplevel)/scripts/prepare-release.sh" "$PWD" "${nextRelease.version}"'
}],
["@semantic-release/github", {
assets: [{ path: "*.skill", label: "Skill package" }]
}],
["@semantic-release/exec", {
publishCmd: "if [ -f tile.json ]; then tessl skill publish . --workspace adobe; fi"
}],
["@semantic-release/git", {
assets: ["CHANGELOG.md", "SKILL.md"],
message: "chore(release): " + name + "-v${nextRelease.version} [skip ci]"
}]
]
};