This commit is contained in:
Jozef Steinhübl 2024-12-12 18:35:20 +01:00
parent de8fc75869
commit 3822e41ec5
No known key found for this signature in database
GPG Key ID: E6BC90C91973B08F

View File

@ -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<Output> => {
const bunfigPath = join(homedir(), ".bunfig.toml");
const bunfigPath = join(cwd(), "bunfig.toml");
writeBunfig(bunfigPath, options.registries);
const url = getDownloadUrl(options);