mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-23 22:39:38 -05:00
Fix npm issue for deploy script
This commit is contained in:
parent
2620ec3fae
commit
e04a8203dc
@ -22,7 +22,8 @@ if (! exists) {
|
|||||||
fs.writeFileSync("package.json", JSON.stringify(pkg, null, 4) + "\n");
|
fs.writeFileSync("package.json", JSON.stringify(pkg, null, 4) + "\n");
|
||||||
|
|
||||||
// Also update package-lock.json
|
// Also update package-lock.json
|
||||||
childProcess.spawnSync("npm", [ "install" ]);
|
const npm = /^win/.test(process.platform) ? "npm.cmd" : "npm";
|
||||||
|
childProcess.spawnSync(npm, [ "install" ]);
|
||||||
|
|
||||||
commit(version);
|
commit(version);
|
||||||
tag(version);
|
tag(version);
|
||||||
|
@ -26,7 +26,8 @@ if (! exists) {
|
|||||||
fs.writeFileSync("package.json", JSON.stringify(pkg, null, 4) + "\n");
|
fs.writeFileSync("package.json", JSON.stringify(pkg, null, 4) + "\n");
|
||||||
|
|
||||||
// Also update package-lock.json
|
// Also update package-lock.json
|
||||||
childProcess.spawnSync("npm", [ "install" ]);
|
const npm = /^win/.test(process.platform) ? "npm.cmd" : "npm";
|
||||||
|
childProcess.spawnSync(npm, [ "install" ]);
|
||||||
|
|
||||||
commit(newVersion);
|
commit(newVersion);
|
||||||
tag(newVersion);
|
tag(newVersion);
|
||||||
|
Loading…
Reference in New Issue
Block a user