Skip to content

Commit

Permalink
push prerelease branch in addition to tags
Browse files Browse the repository at this point in the history
  • Loading branch information
hipstersmoothie committed Jul 14, 2020
1 parent 7141cf2 commit 6011e8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/git-tag/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default class GitTagPlugin implements IPlugin {
"-m",
`"Tag pre-release: ${prerelease}"`,
]);
await execPromise("git", ["push", auto.remote, "--tags"]);
await execPromise("git", ["push", auto.remote, branch, "--tags"]);

preReleaseVersions.push(prerelease);
return preReleaseVersions;
Expand Down
2 changes: 1 addition & 1 deletion plugins/npm/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ export default class NPMPlugin implements IPlugin {
preReleaseVersions.push(auto.prefixRelease(version!));
}

await execPromise("git", ["push", auto.remote, "--tags"]);
await execPromise("git", ["push", auto.remote, branch, "--tags"]);
return preReleaseVersions;
});

Expand Down

0 comments on commit 6011e8f

Please sign in to comment.