@releasekit/notes 0.4.1 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -124,7 +124,13 @@ var GitHubReleaseConfigSchema = z.object({
124
124
  * - 'generated': Use GitHub's auto-generated notes.
125
125
  * - 'none': No body.
126
126
  */
127
- body: z.enum(["auto", "releaseNotes", "changelog", "generated", "none"]).default("auto")
127
+ body: z.enum(["auto", "releaseNotes", "changelog", "generated", "none"]).default("auto"),
128
+ /**
129
+ * Template string for the GitHub release title when a package name is resolved.
130
+ * Available variables: ${packageName} (original scoped name), ${version} (e.g. "v1.0.0").
131
+ * Version-only tags (e.g. "v1.0.0") always use the tag as-is.
132
+ */
133
+ titleTemplate: z.string().default("${packageName}: ${version}")
128
134
  });
129
135
  var VerifyRegistryConfigSchema = z.object({
130
136
  enabled: z.boolean().default(true),
@@ -168,7 +174,8 @@ var PublishConfigSchema = z.object({
168
174
  draft: true,
169
175
  perPackage: true,
170
176
  prerelease: "auto",
171
- body: "auto"
177
+ body: "auto",
178
+ titleTemplate: "${packageName}: ${version}"
172
179
  }),
173
180
  verify: VerifyConfigSchema.default({
174
181
  npm: {
@@ -1704,6 +1711,29 @@ async function runPipeline(input, config, dryRun) {
1704
1711
  packageNotes[ctx.packageName] = formatVersion(ctx);
1705
1712
  if (ctx.enhanced?.releaseNotes) {
1706
1713
  releaseNotesResult[ctx.packageName] = ctx.enhanced.releaseNotes;
1714
+ } else if (releaseNotesConfig) {
1715
+ if (releaseNotesConfig.templates?.path) {
1716
+ try {
1717
+ const templatePath = path7.resolve(releaseNotesConfig.templates.path);
1718
+ const docCtx = createDocumentContext([ctx], void 0);
1719
+ const rendered = renderTemplate(
1720
+ templatePath,
1721
+ docCtx,
1722
+ releaseNotesConfig.templates.engine
1723
+ );
1724
+ releaseNotesResult[ctx.packageName] = rendered.content;
1725
+ } catch (err) {
1726
+ warn(
1727
+ `Failed to render release notes template for ${ctx.packageName}: ${err instanceof Error ? err.message : String(err)}`
1728
+ );
1729
+ warn(`Release notes preview will not be available for ${ctx.packageName} in the workflow summary`);
1730
+ }
1731
+ } else {
1732
+ info(
1733
+ `No LLM release notes or template output for ${ctx.packageName}, using formatted changelog as release notes preview`
1734
+ );
1735
+ releaseNotesResult[ctx.packageName] = formatVersion(ctx);
1736
+ }
1707
1737
  }
1708
1738
  }
1709
1739
  return {
package/dist/cli.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  parseVersionOutput,
7
7
  runPipeline,
8
8
  saveAuth
9
- } from "./chunk-QX23CBNW.js";
9
+ } from "./chunk-COAZCBI4.js";
10
10
  import {
11
11
  EXIT_CODES,
12
12
  error,
package/dist/index.js CHANGED
@@ -16,7 +16,7 @@ import {
16
16
  processInput,
17
17
  runPipeline,
18
18
  saveAuth
19
- } from "./chunk-QX23CBNW.js";
19
+ } from "./chunk-COAZCBI4.js";
20
20
  import {
21
21
  aggregateToRoot,
22
22
  detectMonorepo,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@releasekit/notes",
3
- "version": "0.4.1",
3
+ "version": "0.6.0",
4
4
  "description": "Release notes and changelog generation with LLM-powered enhancement and flexible templating",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",