We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a944ca commit 552d44eCopy full SHA for 552d44e
src/built-in-plugins/command-publish/plugin/run-publish.ts
@@ -66,7 +66,10 @@ export const publish = async (options: PublishOption) => {
66
67
await fs.remove(path.join(pri.projectRootPath, tempPath.dir, declarationPath.dir));
68
69
- await exec(`git push`);
+ const currentBranch = execSync('git rev-parse --abbrev-ref HEAD')
70
+ .toString('utf8')
71
+ .trim();
72
+ await exec(`git push origin ${currentBranch}`);
73
}
74
break;
75
0 commit comments