Skip to content

Commit

Permalink
fix(publish): Tell yarn to stop creating git tags
Browse files Browse the repository at this point in the history
Fixes #1662
  • Loading branch information
evocateur committed Sep 11, 2018
1 parent ac0baa7 commit 2a6f0a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions utils/npm-publish/__tests__/npm-publish.test.js
Expand Up @@ -111,6 +111,7 @@ describe("npm-publish", () => {
"--new-version",
pkg.version,
"--non-interactive",
"--no-git-tag-version",
"test-1.10.100.tgz",
],
{
Expand Down
3 changes: 2 additions & 1 deletion utils/npm-publish/npm-publish.js
Expand Up @@ -28,7 +28,8 @@ function npmPublish(pkg, tag, { npmClient, registry }) {
if (npmClient === "yarn") {
// skip prompt for new version, use existing instead
// https://yarnpkg.com/en/docs/cli/publish#toc-yarn-publish-new-version
args.push("--new-version", pkg.version, "--non-interactive");
args.push("--new-version", pkg.version, "--non-interactive", "--no-git-tag-version");
// yarn also needs to be told to stop creating git tags: https://git.io/fAr1P
}

// always add tarball file, created by npmPack()
Expand Down

0 comments on commit 2a6f0a4

Please sign in to comment.