Skip to content

Commit

Permalink
Use random UUID when creating wrangler artifacts output directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Maximo-Guk committed Nov 5, 2024
1 parent a7a2388 commit 4d04561
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down

0 comments on commit 4d04561

Please sign in to comment.