Skip to content

Commit

Permalink
fix: force push tags
Browse files Browse the repository at this point in the history
closes #35
  • Loading branch information
jasonkuhrt committed Feb 19, 2020
1 parent bbf5c71 commit 286f0c8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utils/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 286f0c8

Please sign in to comment.