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

This commit is contained in:
synacktra.work@gmail.com
2025-12-31 23:58:27 +05:30
parent a9176170ff
commit 13488bcfb1

View File

@@ -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