Skip to content

Commit 442d035

Browse files
committed
fix
1 parent d153e33 commit 442d035

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/get-release-tag.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
import packageJson from "../package.json" with { type: "json" };
33

44
const matched = /-(beta|rc)\d+$/.exec(packageJson.version);
5-
console.log(matched[1] ?? "latest");
5+
console.log(matched?.[1] ?? "latest");

0 commit comments

Comments
 (0)