perf(release): build and publish npm platform packages concurrently (#14028)

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
Theo BrowneandClaude Opus 5.5 authored and GitHub committed 2026-09-30 21:28:25 -07:00
1 parent 0cf482b08b
commit 67b175a4c9
4 files changed
+101 -15

No files matched your search

+11 -13
View File
@@ -429,24 +429,22 @@ export const buildNpmPlatformPackages = Effect.fn("buildNpmPlatformPackages")(fu
yield* fs.makeDirectory(path.join(input.outputDir, NPM_PLATFORM_PACKAGE_SCOPE), {
recursive: true,
});
const outputs: Array<NpmPackageOutput> = [];
for (const { key, archive } of archives) {
outputs.push(
yield* stagePlatformPackage({
key,
archive,
outputDir: input.outputDir,
version: input.version,
}),
);
}
outputs.push(
// Each archive stages in its own scratch dir, so all of them unpack and
// compress at once. Sequentially this took about 45s for five archives.
const platformOutputs = yield* Effect.forEach(
archives,
({ key, archive }) =>
stagePlatformPackage({ key, archive, outputDir: input.outputDir, version: input.version }),
{ concurrency: "unbounded" },
);
const outputs = [
...platformOutputs,
yield* stageLauncherPackage({
outputDir: input.outputDir,
version: input.version,
platformKeys: archives.map((entry) => entry.key),
}),
);
];
for (const output of outputs) {
yield* Effect.log(`[npm-packages] Wrote ${output.packageDir} and ${output.tarball}`);