This commit is contained in:
Dax Raad
2025-06-12 11:02:51 -04:00
parent 888105e60f
commit 33457d8472

View File

@@ -86,12 +86,13 @@ await Bun.file(`./dist/${pkg.name}/package.json`).write(
if (!dry) if (!dry)
await $`cd ./dist/${pkg.name} && npm publish --access public --tag ${npmTag}` await $`cd ./dist/${pkg.name} && npm publish --access public --tag ${npmTag}`
for (const key of Object.keys(optionalDependencies)) { if (!snapshot) {
await $`cd dist/${key}/bin && zip -r ../../${key}.zip *` for (const key of Object.keys(optionalDependencies)) {
} await $`cd dist/${key}/bin && zip -r ../../${key}.zip *`
}
// Upload to GitHub releases const files = Object.keys(optionalDependencies)
const files = Object.keys(optionalDependencies) .map((key) => `dist/${key}.zip`)
.map((key) => `dist/${key}.zip`) .join(" ")
.join(" ") await $`gh release create v${version} --title "Release v${version}" --generate-notes ./dist/*.zip`
await $`gh release create v${version} ${files} --title "Release v${version}" --generate-notes` }