build: use npm@7 for npm view command
This commit is contained in:
parent
99a34d5209
commit
ff3289d260
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ new Promise((resolve, reject) => {
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.then((tarballPath) => {
|
.then((tarballPath) => {
|
||||||
const existingVersionJSON = childProcess.execSync(`npm view electron@${currentElectronVersion} --json`).toString('utf-8');
|
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
|
// It's possible this is a re-run and we already have published the package, if not we just publish like normal
|
||||||
if (!existingVersionJSON) {
|
if (!existingVersionJSON) {
|
||||||
childProcess.execSync(`npm publish ${tarballPath} --tag ${npmTag} --otp=${process.env.ELECTRON_NPM_OTP}`);
|
childProcess.execSync(`npm publish ${tarballPath} --tag ${npmTag} --otp=${process.env.ELECTRON_NPM_OTP}`);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue