From 286f0c802886bce61da11a89e5d0ac481b8df3b5 Mon Sep 17 00:00:00 2001 From: Jason Kuhrt Date: Tue, 18 Feb 2020 22:56:20 -0500 Subject: [PATCH] fix: force push tags closes #35 --- src/utils/publish.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/utils/publish.ts b/src/utils/publish.ts index c8fbb632..61669fbd 100644 --- a/src/utils/publish.ts +++ b/src/utils/publish.ts @@ -106,10 +106,9 @@ export async function publish(release: Release, givenOpts?: Options) { // https://stackoverflow.com/questions/8044583/how-can-i-move-a-tag-on-a-git-branch-to-a-different-commit // todo provide nice semantic descriptions for each dist tag await git.raw(['tag', '--force', '--message', distTag, distTag]) - await git.raw(['push', 'origin', `:refs/tags/${distTag}`]) + await git.raw(['push', '--force', '--tags']) console.log('updated git tag %j', distTag) } - await git.raw(['push', '--tags']) } // Push the git commits