ci
This commit is contained in:
parent
150baf3e96
commit
09b402a274
1 changed files with 4 additions and 2 deletions
|
|
@ -35,7 +35,8 @@ await Bun.file(`./dist/${pkg.name}/package.json`).write(
|
||||||
2,
|
2,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
for (const [name] of Object.entries(binaries)) {
|
|
||||||
|
const tasks = Object.entries(binaries).map(async ([name]) => {
|
||||||
try {
|
try {
|
||||||
process.chdir(`./dist/${name}`)
|
process.chdir(`./dist/${name}`)
|
||||||
if (process.platform !== "win32") {
|
if (process.platform !== "win32") {
|
||||||
|
|
@ -46,7 +47,8 @@ for (const [name] of Object.entries(binaries)) {
|
||||||
} finally {
|
} finally {
|
||||||
process.chdir(dir)
|
process.chdir(dir)
|
||||||
}
|
}
|
||||||
}
|
})
|
||||||
|
await Promise.all(tasks)
|
||||||
await $`cd ./dist/${pkg.name} && bun pm pack && npm publish *.tgz --access public --tag ${Script.channel}`
|
await $`cd ./dist/${pkg.name} && bun pm pack && npm publish *.tgz --access public --tag ${Script.channel}`
|
||||||
|
|
||||||
if (!Script.preview) {
|
if (!Script.preview) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue