Fix release script

This commit is contained in:
Louis Lam
2022-03-24 22:44:22 +08:00
parent 2abdf2efad
commit 6c7a0ff7d3
2 changed files with 8 additions and 3 deletions

View File

@@ -1,8 +1,13 @@
import child_process from "child_process";
import fs from "fs";
const child_process = require("child_process");
const fs = require("fs");
const newVersion = process.env.VERSION;
if (!newVersion) {
console.log("Missing version");
process.exit(1);
}
updateWiki(newVersion);
function updateWiki(newVersion) {