Files
adobe__skills/release.config.cjs
Lars Trieloff 285a2bd368 ci(release): implement plugin discovery and batch publishing in workflow
Agent-Id: agent-4acf7bf5-e063-47ae-a789-f312891c5da9
Linked-Note-Id: 54059800-22af-4494-a241-ed8e6f89fae6
2026-07-06 19:05:28 +02:00

36 lines
1.2 KiB
JavaScript

const path = require("path");
const pkg = require(path.resolve("package.json"));
const name = pkg.name;
const pathFilteredAnalyzer = path.resolve(__dirname, "scripts/path-filtered-analyzer.cjs");
const pathFilteredNotesGenerator = path.resolve(__dirname, "scripts/path-filtered-notes-generator.cjs");
module.exports = {
branches: ["main"],
tagFormat: name + "-v${version}",
plugins: [
[pathFilteredAnalyzer, {
releaseRules: [
{ type: "docs", release: "patch" },
{ type: "refactor", release: "patch" },
{ type: "style", release: "patch" },
{ type: "perf", release: "patch" }
]
}],
[pathFilteredNotesGenerator, {}],
["@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/git", {
assets: ["CHANGELOG.md", "SKILL.md"],
message: "chore(release): " + name + "-v${nextRelease.version} [skip ci]"
}]
]
};