map alpha versions to the next channel/tag

This commit is contained in:
Robin Malfait
2023-12-21 00:46:31 +01:00
parent 13f4cd5a7f
commit 5976b9a624
+2
View File
@@ -22,6 +22,8 @@ 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'
console.log(match[1])
} else {
console.log('latest')