We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b07f822 commit 29afa33Copy full SHA for 29afa33
scripts/release/utils/git.ts
@@ -50,10 +50,12 @@ export async function pushReleaseTagsToGithub() {
50
// When running the release script, these tags should be release tags created by changeset
51
const { stdout: rawTags } = await exec(`git tag --points-at HEAD`);
52
53
- const tags = rawTags.split('\r\n');
+ const tags = rawTags.split(/\r?\n/);
54
55
let { stdout: currentBranch } = await exec(`git rev-parse --abbrev-ref HEAD`);
56
currentBranch = currentBranch.trim();
57
58
- await exec(`git push origin ${tags.join(' ')} --no-verify`, { cwd: root });
+ await exec(`git push origin ${currentBranch} ${tags.join(' ')} --no-verify`, {
59
+ cwd: root
60
+ });
61
}
0 commit comments