diff --git a/extra/mark-as-nightly.js b/extra/mark-as-nightly.js index ebc67da3..ada2aca8 100644 --- a/extra/mark-as-nightly.js +++ b/extra/mark-as-nightly.js @@ -1,11 +1,12 @@ const pkg = require("../package.json"); const fs = require("fs"); const util = require("../src/util"); +const dayjs = require("dayjs"); util.polyfill(); const oldVersion = pkg.version; -const newVersion = oldVersion + "-nightly-" + util.genSecret(8); +const newVersion = oldVersion + "-nightly-" + dayjs().format("YYYYMMDDHHmmss"); console.log("Old Version: " + oldVersion); console.log("New Version: " + newVersion);