We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d153e33 commit 442d035Copy full SHA for 442d035
tools/get-release-tag.mjs
@@ -2,4 +2,4 @@
2
import packageJson from "../package.json" with { type: "json" };
3
4
const matched = /-(beta|rc)\d+$/.exec(packageJson.version);
5
-console.log(matched[1] ?? "latest");
+console.log(matched?.[1] ?? "latest");
0 commit comments