diff --git a/src/action.ts b/src/action.ts index 608d57c..9dadc32 100644 --- a/src/action.ts +++ b/src/action.ts @@ -15,6 +15,7 @@ import { getExecOutput } from "@actions/exec"; import { writeBunfig, Registry } from "./bunfig"; import { saveState } from "@actions/core"; import { addExtension, retry } from "./utils"; +import { cwd } from "node:process"; export type Input = { customUrl?: string; @@ -43,7 +44,7 @@ export type CacheState = { }; export default async (options: Input): Promise => { - const bunfigPath = join(homedir(), ".bunfig.toml"); + const bunfigPath = join(cwd(), "bunfig.toml"); writeBunfig(bunfigPath, options.registries); const url = getDownloadUrl(options);