We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e92f001 commit cda72b5Copy full SHA for cda72b5
scripts/release.js
@@ -107,10 +107,6 @@ async function getNewVersion() {
107
const tags = await getVersionsFromGitTags();
108
const latestOfficialTag = tags.find(tag => !tag.includes('-beta.') && !tag.includes('-dev.'));
109
// If no official version found, use v0.0.0 as the starting point
110
- // Otherwise, use a regex to extract the version number from the tag, matching:
111
- // - \d+\.\d+\.\d+ - Major.Minor.Patch numbers
112
- // - (?:-[a-zA-Z0-9\-\.]+)? - Optional pre-release (e.g., -beta.1, -alpha.2)
113
- // - (?:\+[a-zA-Z0-9\-\.]+)? - Optional build metadata (e.g., +build.123)
114
const latestOfficialVersion = latestOfficialTag
115
? semver.coerce(latestOfficialTag).version
116
: '0.0.0';
0 commit comments