diff --git a/scripts/manual-publish.js b/scripts/manual-publish.js index 31ff8ce0..75d4d9d5 100644 --- a/scripts/manual-publish.js +++ b/scripts/manual-publish.js @@ -23,7 +23,7 @@ const OLD_VERSION = pkg.version; if (!isLatestRelease) { /** pre-release branch name should be the tag name (e.g., beta, canery, etc.) or tag name followed by a '-' and version or other specifiers. e.g. beta-2.0 */ - tag = BRANCH.split("-")[0].replace("/", "_"); + tag = BRANCH.split(/-|\\/)[0]; try { execSync(`pnpm changeset pre enter ${tag}`); } catch (e) {