From 847976a3100ab7c0c8ea361e4eea2a48cdf67b08 Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Thu, 21 Dec 2023 02:55:46 +0100 Subject: [PATCH] fix typo --- scripts/release-channel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/release-channel.js b/scripts/release-channel.js index 9d3914f..b3f5bf6 100644 --- a/scripts/release-channel.js +++ b/scripts/release-channel.js @@ -23,7 +23,7 @@ let version = require(path.resolve(pkgPath, 'package.json')).version let match = /\d+\.\d+\.\d+-(.*)\.\d+/g.exec(version) if (match) { // We want to release alpha to the next channel because it will be the next version - if (match === 'alpha') match = 'next' + if (match[1] === 'alpha') match[1] = 'next' console.log(match[1]) } else { console.log('latest')