Build unsafe
This commit is contained in:
@@ -159,7 +159,7 @@ async function main(): Promise<void> {
|
||||
await run("git", ["merge", "--ff-only", options.to], options.repo);
|
||||
updated = true;
|
||||
await run("npm", ["ci"], options.repo);
|
||||
await run("npm", ["run", "build"], options.repo);
|
||||
await run("npm", ["run", "build:unsafe"], options.repo);
|
||||
console.log("XO was updated successfully.");
|
||||
} catch (error) {
|
||||
console.error("Update failed; restoring the previous revision.");
|
||||
@@ -167,7 +167,7 @@ async function main(): Promise<void> {
|
||||
try {
|
||||
await run("git", ["reset", "--hard", options.from], options.repo);
|
||||
await run("npm", ["ci"], options.repo);
|
||||
await run("npm", ["run", "build"], options.repo);
|
||||
await run("npm", ["run", "build:unsafe"], options.repo);
|
||||
console.error("The previous revision was restored.");
|
||||
} catch (rollbackError) {
|
||||
console.error("Automatic rollback also failed:", rollbackError);
|
||||
|
||||
Reference in New Issue
Block a user