mirror of
https://github.com/trycua/lume.git
synced 2026-01-06 04:20:03 -06:00
fix(ci): handle bun build step when build script doesn't exist
This commit is contained in:
5
.github/workflows/npm-reusable-publish.yml
vendored
5
.github/workflows/npm-reusable-publish.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user