From 855e84dbc2ff4065432999d31bd8cbda39deb9c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Mon, 27 Feb 2023 09:31:47 +0100 Subject: [PATCH] fix: use correct V8 tag for major updates Sometimes there might be additional tags with suffix such as `-pgo` --- lib/update-v8/majorUpdate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/update-v8/majorUpdate.js b/lib/update-v8/majorUpdate.js index 10d74826..736c4344 100644 --- a/lib/update-v8/majorUpdate.js +++ b/lib/update-v8/majorUpdate.js @@ -54,7 +54,7 @@ function checkoutBranch() { '--sort', 'version:refname' ); - const tags = res.stdout.split('\n'); + const tags = res.stdout.split('\n').filter(tag => versionReg.test(tag)); const lastTag = tags[tags.length - 1]; if (lastTag) version = lastTag; if (version.split('.').length === 3) {