Skip to content

Commit 29afa33

Browse files
authored
parse tags correctly in release script (#3385)
* parse tags correctly * remove debug code
1 parent b07f822 commit 29afa33

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/release/utils/git.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,12 @@ export async function pushReleaseTagsToGithub() {
5050
// When running the release script, these tags should be release tags created by changeset
5151
const { stdout: rawTags } = await exec(`git tag --points-at HEAD`);
5252

53-
const tags = rawTags.split('\r\n');
53+
const tags = rawTags.split(/\r?\n/);
5454

5555
let { stdout: currentBranch } = await exec(`git rev-parse --abbrev-ref HEAD`);
5656
currentBranch = currentBranch.trim();
5757

58-
await exec(`git push origin ${tags.join(' ')} --no-verify`, { cwd: root });
58+
await exec(`git push origin ${currentBranch} ${tags.join(' ')} --no-verify`, {
59+
cwd: root
60+
});
5961
}

0 commit comments

Comments
 (0)