From 912a735b9a112fdc5db2d4b8d765c75d1db5e1ab Mon Sep 17 00:00:00 2001 From: dimaslz Date: Wed, 7 Feb 2024 02:00:34 +0100 Subject: [PATCH] chore(cli): fix publish cli command --- packages/cli/publish.mjs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/cli/publish.mjs b/packages/cli/publish.mjs index 1b2cf39..696edae 100644 --- a/packages/cli/publish.mjs +++ b/packages/cli/publish.mjs @@ -85,7 +85,7 @@ const run = async () => { if (canCommit) { shell.exec( - `git add . && git commit -m "chore(tag): bump version to ${newVersion}"`, + `git add ${__here} && git commit -m "chore(tag): bump version to ${newVersion}"`, ); } @@ -97,9 +97,7 @@ const run = async () => { }); if (canTag) { - shell.exec( - `git add . && git tag ${newVersion} && git push -f --tags origin ${BRANCH}`, - ); + shell.exec(`git tag ${newVersion} && git push -f --tags origin ${BRANCH}`); } const { value: canPublishPackage } = await prompt({