Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support for multiple private registries #109

Open
wants to merge 24 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ci: test
xhyrom committed Dec 12, 2024
commit 3822e41ec5a5617112e506a48b05b92f7f4f5ddd
3 changes: 2 additions & 1 deletion src/action.ts
Original file line number Diff line number Diff line change
@@ -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);