From c6f176f7843f2720abc7bb9410a3116fc732ce6e Mon Sep 17 00:00:00 2001 From: troytt <47798984@qq.com> Date: Mon, 14 Sep 2026 11:22:48 +0000 Subject: [PATCH] chore(scripts): configure commit author in publish-packs --- scripts/publish-packs.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/publish-packs.ts b/scripts/publish-packs.ts index 97f11af..3afa99e 100644 --- a/scripts/publish-packs.ts +++ b/scripts/publish-packs.ts @@ -164,7 +164,8 @@ try { writeFileSync(join(work, '.gitattributes'), '*.png binary -diff\n*.json text eol=lf\n') git(['add', '-A'], work) git([ - '-c', 'user.name=d2web', '-c', 'user.email=d2web@localhost', + '-c', `user.name=${process.env['GIT_AUTHOR_NAME'] ?? 'Dao Tao'}`, + '-c', `user.email=${process.env['GIT_AUTHOR_EMAIL'] ?? 'taodao@google.com'}`, 'commit', '-q', '-m', `烘焙图集包 ${stamp}:${String(stats.maps)} 个地图块(${(stats.bytes / 1048576).toFixed(1)} MB)