Skip to content

Commit 8625977

Browse files
committed
sync
1 parent d48913b commit 8625977

2 files changed

Lines changed: 3 additions & 22 deletions

File tree

script/publish-complete.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

script/publish.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,8 @@ Add highlights before publishing. Delete this section if no highlights.
3232
3333
`
3434

35-
let notes: string[] = []
36-
3735
console.log("=== publishing ===\n")
3836

39-
if (!Script.preview) {
40-
const previous = await getLatestRelease()
41-
notes = await buildNotes(previous, "HEAD")
42-
// notes.unshift(highlightsTemplate)
43-
}
44-
4537
const pkgjsons = await Array.fromAsync(
4638
new Bun.Glob("**/package.json").scan({
4739
absolute: true,
@@ -66,6 +58,9 @@ await $`bun install`
6658
await import(`../packages/sdk/js/script/build.ts`)
6759

6860
if (Script.release) {
61+
const previous = await getLatestRelease()
62+
const notes = await buildNotes(previous, "HEAD")
63+
// notes.unshift(highlightsTemplate)
6964
await $`git commit -am "release: v${Script.version}"`
7065
await $`git tag v${Script.version}`
7166
await $`git fetch origin`

0 commit comments

Comments
 (0)