From 97dfe8916c19a92917b10eb5fc70ef1cc16bc5c2 Mon Sep 17 00:00:00 2001 From: zjxxxxxxxxx <43126836+zjxxxxxxxxx@users.noreply.github.com> Date: Sat, 14 Dec 2024 15:09:10 +0800 Subject: [PATCH] chore: Fix `pnpm tasks` error --- scripts/create-codesandbox-tasks.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/create-codesandbox-tasks.ts b/scripts/create-codesandbox-tasks.ts index bcca3e8..e8cd55c 100644 --- a/scripts/create-codesandbox-tasks.ts +++ b/scripts/create-codesandbox-tasks.ts @@ -24,6 +24,12 @@ function main() { writejson(TASKS_PATH, taskJson); + saveChanges(); +} + +function saveChanges() { + execSync('git config user.email "954270063@qq.com"'); + execSync('git config user.name "zjxxxxxxxxx"'); execSync('git add .'); - execSync(`git commit -m 'Timestamp of temporary changes: ${Date.now()}'`); + execSync(`git commit -m 'save changes: ${Date.now()}'`); }