Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ async function checkGitBranchAndStatus() {

async function getNewVersion() {
async function getVersionsFromGitTags() {
const result = await runExec(`git tag --list --sort=-version:refname`, { silent: true });
const tags = result.stdout.toString().trim().split('\n').filter(tag => tag.startsWith('v'));
const result = await runExec(`git tag --list --sort=-committerdate`, { silent: true });
const tags = result.stdout.toString().trim().split('\n');
return tags
}

Expand Down Expand Up @@ -111,6 +111,7 @@ async function getNewVersion() {
? semver.coerce(latestOfficialTag).version
: '0.0.0';


return semver.inc(latestOfficialVersion, bumpType);
}
}
Expand Down