sync
This commit is contained in:
@@ -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}`
|
||||||
|
|
||||||
|
if (!snapshot) {
|
||||||
for (const key of Object.keys(optionalDependencies)) {
|
for (const key of Object.keys(optionalDependencies)) {
|
||||||
await $`cd dist/${key}/bin && zip -r ../../${key}.zip *`
|
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} ${files} --title "Release v${version}" --generate-notes`
|
await $`gh release create v${version} --title "Release v${version}" --generate-notes ./dist/*.zip`
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user