chore(scripts): configure commit author in publish-packs

This commit is contained in:
troytt 2026-09-14 11:22:48 +00:00
parent 1cdbe5de19
commit c6f176f784
1 changed files with 2 additions and 1 deletions

View File

@ -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)