chore: fix vscode release workflow on Windows Runner

This commit is contained in:
tanzhenxin 2026-01-24 14:36:41 +08:00
parent e5b800a79d
commit 293fe8f1f4

View file

@ -20,7 +20,6 @@
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import { spawnSync } from 'node:child_process';
import os from 'node:os';
import fs from 'node:fs';
const __filename = fileURLToPath(import.meta.url);
@ -230,9 +229,7 @@ function main() {
}
run(npm, installArgs, {
// Run outside the repo so npm doesn't treat this as a workspace install.
// This avoids Windows junctions/symlinks in the staged node_modules.
cwd: os.tmpdir(),
cwd: bundledCliDir,
env: {
...process.env,
npm_config_workspaces: 'false',