Files
adobe__skills/release.config.cjs
Lars Trieloff baa8015867 fix(release): path-filter release-notes-generator + restore slicc-handoff CHANGELOG (#144)
PR #139 wrapped commit-analyzer with path filtering but tried to fix
release-notes-generator with gitRawCommitsOpts: { path: '.' } -- a
no-op because the plugin reads context.commits from semantic-release,
never gitRawCommitsOpts. Result: every skill release body and CHANGELOG
included commits from the entire repo (see slicc-handoff-v1.0.0).

- Add scripts/path-filtered-notes-generator.cjs mirroring the analyzer
  wrapper -- filters context.commits via git log -- . before delegating
  to the real plugin.
- Wire it into release.config.cjs in place of the bare plugin entry;
  drop the dead gitRawCommitsOpts config.
- Regenerate plugins/aem/edge-delivery-services/skills/slicc-handoff/
  CHANGELOG.md (skipped by PR #140 because the tag did not exist yet).
2026-05-21 15:21:52 -07:00

39 lines
1.3 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/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]"
}]
]
};