diff --git a/dist/setup.js b/dist/setup.js index 6f163c2..3be1eb3 100644 --- a/dist/setup.js +++ b/dist/setup.js @@ -5,7 +5,7 @@ import * as action from "@actions/core"; import { downloadTool, extractZip } from "@actions/tool-cache"; import * as cache from "@actions/cache"; import { restoreCache, saveCache } from "@actions/cache"; -import { cp, rmRF } from "@actions/io"; +import { cp, mkdirP, rmRF } from "@actions/io"; import { getExecOutput } from "@actions/exec"; export default async (options) => { const { url, cacheKey } = getDownloadUrl(options); @@ -33,6 +33,7 @@ export default async (options) => { const zipPath = await downloadTool(url); const extractedPath = await extractZip(zipPath); const exePath = await extractBun(extractedPath); + await mkdirP(dir); await cp(exePath, path); await rmRF(exePath); version = await verifyBun(path); diff --git a/src/setup.ts b/src/setup.ts index c42e647..435ed9e 100644 --- a/src/setup.ts +++ b/src/setup.ts @@ -5,7 +5,7 @@ import * as action from "@actions/core"; import { downloadTool, extractZip } from "@actions/tool-cache"; import * as cache from "@actions/cache"; import { restoreCache, saveCache } from "@actions/cache"; -import { cp, rmRF } from "@actions/io"; +import { cp, mkdirP, rmRF } from "@actions/io"; import { getExecOutput } from "@actions/exec"; export default async (options?: { @@ -41,6 +41,7 @@ export default async (options?: { const zipPath = await downloadTool(url); const extractedPath = await extractZip(zipPath); const exePath = await extractBun(extractedPath); + await mkdirP(dir); await cp(exePath, path); await rmRF(exePath); version = await verifyBun(path);