Skip to content

Commit 30934e4

Browse files
committed
chore: oidc workflow for next
1 parent b88f7c2 commit 30934e4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

scripts/get-next-version.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const semver = require("semver");
22
const child_process = require("child_process");
3-
const dayjs = require("dayjs");
43
const fs = require("fs");
54

65
const currentVersion =
@@ -25,7 +24,11 @@ if (currentTag === "pr" && process.env.GITHUB_EVENT_PATH) {
2524
}
2625
}
2726

28-
const preRelease = `${currentTag}.${prPrerelease}${dayjs().format("YYYY-MM-DD")}-${runID}`;
27+
// Format date as YYYY-MM-DD using native Date
28+
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}`;
2932

3033
let lastTagVersion = (
3134
process.env.LAST_TAGGED_VERSION ||

0 commit comments

Comments
 (0)