Use random UUID when creating wrangler artifacts output directory

This commit is contained in:
Maximo Guk 2024-11-05 14:41:27 -06:00
parent a7a2388d7b
commit 4d045615a9
No known key found for this signature in database
GPG key ID: 6ACC2847315F8810

View file

@ -36,7 +36,10 @@ const config = {
COMMANDS: getMultilineInput("command"),
QUIET_MODE: getBooleanInput("quiet"),
PACKAGE_MANAGER: getInput("packageManager"),
WRANGLER_OUTPUT_DIR: `${join(tmpdir(), "wranglerArtifacts")}`,
WRANGLER_OUTPUT_DIR: `${join(
tmpdir(),
`wranglerArtifacts-${crypto.randomUUID()}`,
)}`,
} as const;
const packageManager = getPackageManager(config.PACKAGE_MANAGER, {