diff options
| author | Dax Raad <[email protected]> | 2025-12-09 21:16:00 -0500 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-12-09 21:16:00 -0500 |
| commit | 09b402a274c969ed0ce08f554c5f7084d4c92aad (patch) | |
| tree | b3d25c8fbb94fb9c36c0952e5510de39decfd70a | |
| parent | 150baf3e963d9a93442bc2ded300f3950f92a56a (diff) | |
| download | opencode-09b402a274c969ed0ce08f554c5f7084d4c92aad.tar.gz opencode-09b402a274c969ed0ce08f554c5f7084d4c92aad.zip | |
ci
| -rwxr-xr-x | packages/opencode/script/publish.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/opencode/script/publish.ts b/packages/opencode/script/publish.ts index 7a00371de..de9980da4 100755 --- a/packages/opencode/script/publish.ts +++ b/packages/opencode/script/publish.ts @@ -35,7 +35,8 @@ await Bun.file(`./dist/${pkg.name}/package.json`).write( 2, ), ) -for (const [name] of Object.entries(binaries)) { + +const tasks = Object.entries(binaries).map(async ([name]) => { try { process.chdir(`./dist/${name}`) if (process.platform !== "win32") { @@ -46,7 +47,8 @@ for (const [name] of Object.entries(binaries)) { } finally { process.chdir(dir) } -} +}) +await Promise.all(tasks) await $`cd ./dist/${pkg.name} && bun pm pack && npm publish *.tgz --access public --tag ${Script.channel}` if (!Script.preview) { |
