fix(ci): rely on idempotent dependency sync

This commit is contained in:
Wooseong Kim
2026-04-20 14:27:02 +09:00
parent 02747edb72
commit f4f33b0b5f
+3 -11
View File
@@ -3,22 +3,14 @@ set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
UI_DIR="$ROOT_DIR/ui"
UI_SENTINEL="$UI_DIR/node_modules/@date-fns/tz/date/mini.js"
ensure_root_deps() {
if [[ ! -d "$ROOT_DIR/node_modules" ]]; then
echo "[deps] Installing root dependencies"
(cd "$ROOT_DIR" && bun install --frozen-lockfile)
fi
echo "[deps] Syncing root dependencies"
(cd "$ROOT_DIR" && bun install --frozen-lockfile)
}
ensure_ui_deps() {
if [[ -d "$UI_DIR/node_modules" && -f "$UI_SENTINEL" ]]; then
return
fi
echo "[deps] Reinstalling UI dependencies"
rm -rf "$UI_DIR/node_modules"
echo "[deps] Syncing UI dependencies"
(cd "$UI_DIR" && bun install --frozen-lockfile)
}