Skip to content

Commit b6deb98

Browse files
committed
fix: cd
1 parent e914fb4 commit b6deb98

3 files changed

Lines changed: 17 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
uses: changesets/action@v1
5050
with:
5151
version: bun run version:packages
52-
publish: bun run release:build && bun run release:stage && bun run release:publish
52+
publish: bun run release:ci
5353
commit: "chore: version packages"
5454
title: "chore: version packages"
5555
env:

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"release:build": "bun run scripts/release/build-binaries.ts",
1313
"release:stage": "bun run scripts/release/stage-npm.ts",
1414
"release:publish": "bun run scripts/release/publish-npm.ts",
15+
"release:ci": "bun run release:build && bun run release:stage && bun run release:publish",
1516
"release:dry-run": "bun run scripts/release/publish-npm.ts --dry-run"
1617
},
1718
"devDependencies": {

scripts/release/shared.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,20 @@ async function runCommand(command: string, args: string[], cwd?: string) {
170170
});
171171
}
172172

173+
async function syncOptionalDependenciesForTarget(spec: TargetSpec) {
174+
await runCommand(
175+
"bun",
176+
[
177+
"install",
178+
"--frozen-lockfile",
179+
"--ignore-scripts",
180+
`--os=${spec.os}`,
181+
`--cpu=${spec.cpu}`,
182+
],
183+
REPO_ROOT,
184+
);
185+
}
186+
173187
function unixLauncher(binaryName: "ralph" | "ralphd") {
174188
return `#!/usr/bin/env bash
175189
set -e
@@ -265,6 +279,7 @@ export async function buildBinaries(
265279
for (const target of targets) {
266280
const spec = getTargetSpec(target);
267281
const targetDir = join(outDir, target);
282+
await syncOptionalDependenciesForTarget(spec);
268283
await rm(targetDir, { recursive: true, force: true });
269284
await mkdir(targetDir, { recursive: true });
270285

0 commit comments

Comments
 (0)