summaryrefslogtreecommitdiffhomepage
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-rwxr-xr-xscript/publish-start.ts30
1 files changed, 30 insertions, 0 deletions
diff --git a/script/publish-start.ts b/script/publish-start.ts
index 5d1b2fb6a..644790f9d 100755
--- a/script/publish-start.ts
+++ b/script/publish-start.ts
@@ -4,6 +4,35 @@ import { $ } from "bun"
import { Script } from "@opencode-ai/script"
import { buildNotes, getLatestRelease } from "./changelog"
+const highlightsTemplate = `## Highlights
+
+<!--
+Add highlights before publishing. Delete this section if no highlights.
+
+- For multiple highlights, use multiple <highlight> tags
+- Highlights with the same source attribute get grouped together
+-->
+
+<!--
+<highlight source="SourceName (TUI/Desktop/Web/Core)">
+ <h2>Feature title goes here</h2>
+ <p short="Short description used for Desktop Recap">
+ Full description of the feature or change
+ </p>
+
+ https://github.com/user-attachments/assets/uuid-for-video (you will want to drag & drop the video or picture)
+
+ <img
+ width="1912"
+ height="1164"
+ alt="image"
+ src="https://github.com/user-attachments/assets/uuid-for-image"
+ />
+</highlight>
+-->
+
+`
+
let notes: string[] = []
console.log("=== publishing ===\n")
@@ -11,6 +40,7 @@ console.log("=== publishing ===\n")
if (!Script.preview) {
const previous = await getLatestRelease()
notes = await buildNotes(previous, "HEAD")
+ notes.unshift(highlightsTemplate)
}
const pkgjsons = await Array.fromAsync(