Skip to content
This repository was archived by the owner on Apr 13, 2021. It is now read-only.

Commit c42aef2

Browse files
author
Sergei Orlov
committed
fix(publishing): push single tag
1 parent af17806 commit c42aef2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/middleware/publish-tag-if-required.middleware.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function publishTagIfRequired({ intermediate }: SemanticsCtx) {
2626
let branch = execSync('git rev-parse --abbrev-ref HEAD', { encoding: 'utf8' });
2727
if (/HEAD/.test('HEAD')) {
2828
branch = execSync('git name-rev HEAD', { encoding: 'utf8' }).replace(/HEAD\s+/, '');
29-
Log.info(`The HEAD is detached. Current branch is ${branch}`);
29+
Log.info(`The HEAD is detached. Current branch is ${branch}.`);
3030
}
3131

3232
if (!origin.includes('@')) {
@@ -54,7 +54,7 @@ export function publishTagIfRequired({ intermediate }: SemanticsCtx) {
5454
// execSync(`git commit -m "docs(changelog): add ${intermediate.newVersion} changes"`);
5555
// }
5656

57-
return execPromise(`git push --follow-tags`);
57+
return execPromise(`git push origin ${intermediate.newVersion}`);
5858
})
5959
.catch(Log.error)
6060
.then(() => Log.success(`Version ${Iro.bold(Iro.green(intermediate.newVersion))} successfully released! 🙌`))

0 commit comments

Comments
 (0)