fix(ci): replace npmmirror URLs in lockfile before install

--frozen-lockfile uses exact URLs from lockfile; BUN_CONFIG_REGISTRY only
affects new resolution. Replace mirror URLs in-place before install so
macOS CI runner can download packages from npmjs.org.
This commit is contained in:
James Feng 2026-06-03 12:22:49 +08:00
parent 523492324e
commit 69d4296def

View File

@ -20,6 +20,9 @@ jobs:
with:
bun-version: latest
- name: Replace mirror URLs
run: sed -i '' 's|registry.npmmirror.com|registry.npmjs.org|g' bun.lock
- name: Install dependencies
run: bun install --frozen-lockfile