From 19373036c4bad4b0183344b6f2623a3b0e42da6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Burzy=C5=84ski?= Date: Thu, 23 Dec 2021 11:21:40 +0100 Subject: [PATCH] Setup the git user in the local config instead of the global one (#128) * Update gitUtils.ts * add changeset Co-authored-by: Dhruvdutt Jadhav --- .changeset/local-git-user.md | 5 +++++ src/gitUtils.ts | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .changeset/local-git-user.md 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"`, ]);