Skip to content

Commit cc5c7dd

Browse files
committed
refactor: push to HEAD instead of hardcoded main in template sync
HEAD pushes to whatever branch is checked out, which is always main in production. More flexible than hardcoding the branch name. Signed-off-by: Pawel Kosiec <[email protected]>
1 parent fb2fc3a commit cc5c7dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/publish-template-tag.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ const commands: [string, string[]][] = [
128128
["commit", "-s", "-m", `chore: sync template to v${version} [skip ci]`],
129129
],
130130
["git", ["tag", "-a", `template-v${version}`, "-m", `Template v${version}`]],
131-
["git", ["push", "origin", "HEAD", "--follow-tags"]], // TODO: revert to "main" after testing (or keep — HEAD == main in production)
131+
["git", ["push", "origin", "HEAD", "--follow-tags"]],
132132
];
133133

134134
for (const [command, args] of commands) {

0 commit comments

Comments
 (0)