build: update to yarn v4 (#48995)

* build: update to yarn v4

(cherry picked from commit 6adec744f3)

* chore: fixup types after yarn v4 migration

* chore: update nan yarn.lock file

* build: automatically install git for dugite
This commit is contained in:
John Kleinschmidt
2025-11-20 10:13:44 -05:00
committed by GitHub
parent 9b89d19b1b
commit 3e6dd7f771
48 changed files with 18204 additions and 11244 deletions

View File

@@ -197,6 +197,7 @@ new Promise<string>((resolve, reject) => {
});
})
.then((tarballPath) => {
// TODO: Remove NPX
const existingVersionJSON = childProcess.execSync(`npx npm@7 view ${rootPackageJson.name}@${currentElectronVersion} --json`).toString('utf-8');
// It's possible this is a re-run and we already have published the package, if not we just publish like normal
if (!existingVersionJSON) {