Skip to content

Commit ebcf18e

Browse files
authored
fix: use correct V8 tag for major updates (#675)
Sometimes there might be additional tags with suffix such as `-pgo`
1 parent a832a1b commit ebcf18e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/update-v8/majorUpdate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function checkoutBranch() {
5454
'--sort',
5555
'version:refname'
5656
);
57-
const tags = res.stdout.split('\n');
57+
const tags = res.stdout.split('\n').filter(tag => versionReg.test(tag));
5858
const lastTag = tags[tags.length - 1];
5959
if (lastTag) version = lastTag;
6060
if (version.split('.').length === 3) {

0 commit comments

Comments
 (0)