Re-resolve dependencies with npm install in the server CI job for SWC

Full 'npm ci' still skipped @swc/core's Linux native binary because the committed lockfile was generated on Windows and lacks the Linux optional-dep install metadata. 'npm install' re-resolves and fetches the platform-matching binary, which the server's unplugin-swc transform needs to load vitest.config.ts.
This commit is contained in:
Maurice
2026-05-31 20:30:00 +02:00
parent 0ccc5d5d26
commit 4523ef6814
+5 -3
View File
@@ -49,9 +49,11 @@ jobs:
cache-dependency-path: package-lock.json
- name: Install dependencies
# Full install (not workspace-scoped) so @swc/core's platform-specific
# native binary is present — server tests transform via unplugin-swc.
run: npm ci
# npm install (not ci) so npm re-resolves and installs @swc/core's
# platform-specific native binary for the Linux runner — server tests
# transform via unplugin-swc, and the committed lockfile omits the
# Linux optional dep that `npm ci` would otherwise need.
run: npm install
- name: Build shared
run: npm run build --workspace=shared