From 661cfccab9aa771d1b196219b525b78ead110478 Mon Sep 17 00:00:00 2001 From: haoziqaq <357229046@qq.com> Date: Tue, 20 Feb 2024 03:21:13 +0800 Subject: [PATCH] fix: fix tag order --- src/release.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/release.ts b/src/release.ts index 6b96f78..a3f4f58 100644 --- a/src/release.ts +++ b/src/release.ts @@ -47,9 +47,7 @@ export async function publish({ preRelease, checkRemoteVersion, npmTag }: Publis if (preRelease) { args.push('--tag', 'alpha') - } - - if (npmTag) { + } else if (npmTag) { args.push('--tag', npmTag) }