mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-02-24 03:00:39 +08:00
ci: test
This commit is contained in:
parent
de8fc75869
commit
3822e41ec5
@ -15,6 +15,7 @@ import { getExecOutput } from "@actions/exec";
|
|||||||
import { writeBunfig, Registry } from "./bunfig";
|
import { writeBunfig, Registry } from "./bunfig";
|
||||||
import { saveState } from "@actions/core";
|
import { saveState } from "@actions/core";
|
||||||
import { addExtension, retry } from "./utils";
|
import { addExtension, retry } from "./utils";
|
||||||
|
import { cwd } from "node:process";
|
||||||
|
|
||||||
export type Input = {
|
export type Input = {
|
||||||
customUrl?: string;
|
customUrl?: string;
|
||||||
@ -43,7 +44,7 @@ export type CacheState = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export default async (options: Input): Promise<Output> => {
|
export default async (options: Input): Promise<Output> => {
|
||||||
const bunfigPath = join(homedir(), ".bunfig.toml");
|
const bunfigPath = join(cwd(), "bunfig.toml");
|
||||||
writeBunfig(bunfigPath, options.registries);
|
writeBunfig(bunfigPath, options.registries);
|
||||||
|
|
||||||
const url = getDownloadUrl(options);
|
const url = getDownloadUrl(options);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user