chore: fix release vapor

This commit is contained in:
三咲智子 Kevin Deng 2024-02-10 14:10:16 +08:00
parent b640bb70fc
commit 2486d991f1
No known key found for this signature in database
GPG Key ID: 69992F2250DFD93E
1 changed files with 19 additions and 17 deletions

View File

@ -163,6 +163,7 @@ async function main() {
const pkgName = isCanary
? renamePackageToCanary('vue')
: renamePackageToVapor('vue')
if (isCanary) {
const { stdout } = await run(
'pnpm',
['view', `${pkgName}@~${newVersion}`, 'version', '--json'],
@ -182,6 +183,7 @@ async function main() {
semver.inc(latestSameDayPatch, 'prerelease', args.tag)
)
}
}
} catch (/** @type {any} */ e) {
if (/E404/.test(e.message)) {
// the first patch version on that day