fix: download binaries from R2 before npm publish (#40)

The npm CLI platform packages were being published without binaries
because publishNpmCli() wasn't downloading them from R2 first.

- Add downloadFromReleases() helper to utils.ts
- Update publishNpmCli() to download platform binaries before publish
- Add sdks/cli/platforms/*/bin/ to .gitignore
This commit is contained in:
Nathan Flurry 2026-01-30 00:05:24 -08:00 committed by GitHub
parent cea02983b9
commit 394945f319
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 62 additions and 3 deletions

View file

@ -200,3 +200,15 @@ export async function assertDirExists(dirPath: string): Promise<void> {
throw err;
}
}
export async function downloadFromReleases(
remotePath: string,
localPath: string,
): Promise<void> {
const { awsEnv, endpointUrl } = await getReleasesS3Config();
await $({
env: awsEnv,
shell: true,
stdio: "inherit",
})`aws s3 cp s3://rivet-releases/${remotePath} ${localPath} --endpoint-url ${endpointUrl}`;
}