Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

fix(ci): handle bun build step when build script doesn't exist

[email protected]13488bcfb11c
diff --git a/.github/workflows/npm-reusable-publish.yml b/.github/workflows/npm-reusable-publish.yml
index 77b7d79002..76ae28587d 100644
--- a/.github/workflows/npm-reusable-publish.yml
+++ b/.github/workflows/npm-reusable-publish.yml
@@ -93,7 +93,10 @@ jobs:
working-directory: ./${{ inputs.package_dir }}
run: |
if [ "${{ inputs.package_manager }}" = "bun" ]; then
- bun run build --if-present
+ # Bun doesn't support --if-present, check if build script exists
+ if grep -q '"build"' package.json; then
+ bun run build
+ fi
else
pnpm run build --if-present
fi