fix: correct typo in package.json and use unique temp dir for logs
Lint / pre-commit Linting (push) Successful in 50s
Test / Run Tests (push) Successful in 1m10s

This commit is contained in:
2026-05-16 19:39:27 +02:00
parent f62ac427c2
commit 6384addc42
3 changed files with 6 additions and 3 deletions
+4 -1
View File
@@ -371,7 +371,10 @@ export async function monitorConsole(api, opts) {
// Step 6: artifact upload
if (logToFile && stdoutBuffer.length > 0) {
const tmpFile = path.join(os.tmpdir(), "screeps_console_log.txt");
const tmpDir = await fs.promises.mkdtemp(
path.join(os.tmpdir(), "screeps-monitor-"),
);
const tmpFile = path.join(tmpDir, "screeps_console_log.txt");
await writeLogFile(stdoutBuffer, tmpFile);
await uploadLogArtifact(tmpFile);
} else if (logToFile) {