mirror of
https://github.com/openclaw/clawhub.git
synced 2026-08-14 08:52:21 +00:00
25 lines
657 B
YAML
25 lines
657 B
YAML
name: Setup Bun
|
|
description: Install the pinned Bun runtime and workspace dependencies.
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6
|
|
with:
|
|
bun-version: 1.3.10
|
|
|
|
- name: Install dependencies
|
|
shell: bash
|
|
run: |
|
|
for attempt in 1 2 3; do
|
|
if bun install --frozen-lockfile; then
|
|
exit 0
|
|
fi
|
|
if [[ "$attempt" -eq 3 ]]; then
|
|
exit 1
|
|
fi
|
|
delay=$((attempt * 5))
|
|
echo "::warning::bun install failed; retrying in ${delay}s (attempt $((attempt + 1))/3)"
|
|
sleep "$delay"
|
|
done
|