We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b88f7c2 commit 30934e4Copy full SHA for 30934e4
scripts/get-next-version.js
@@ -1,6 +1,5 @@
1
const semver = require("semver");
2
const child_process = require("child_process");
3
-const dayjs = require("dayjs");
4
const fs = require("fs");
5
6
const currentVersion =
@@ -25,7 +24,11 @@ if (currentTag === "pr" && process.env.GITHUB_EVENT_PATH) {
25
24
}
26
27
28
-const preRelease = `${currentTag}.${prPrerelease}${dayjs().format("YYYY-MM-DD")}-${runID}`;
+// Format date as YYYY-MM-DD using native Date
+const now = new Date();
29
+const dateStr = `${now.getFullYear()}-${String(now.getMonth() + 1).padStart(2, "0")}-${String(now.getDate()).padStart(2, "0")}`;
30
+
31
+const preRelease = `${currentTag}.${prPrerelease}${dateStr}-${runID}`;
32
33
let lastTagVersion = (
34
process.env.LAST_TAGGED_VERSION ||
0 commit comments