diff --git a/.changeset/local-git-user.md b/.changeset/local-git-user.md new file mode 100644 index 00000000..b8575495 --- /dev/null +++ b/.changeset/local-git-user.md @@ -0,0 +1,5 @@ +--- +"@changesets/action": minor +--- + +Setup the git user in the local config instead of the global one. diff --git a/src/gitUtils.ts b/src/gitUtils.ts index 77efeaa0..3c579830 100644 --- a/src/gitUtils.ts +++ b/src/gitUtils.ts @@ -4,13 +4,11 @@ import { execWithOutput } from "./utils"; export const setupUser = async () => { await exec("git", [ "config", - "--global", "user.name", `"github-actions[bot]"`, ]); await exec("git", [ "config", - "--global", "user.email", `"github-actions[bot]@users.noreply.github.com"`, ]);