mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-19 21:18:22 +02:00
feat: add auth setup to private registry with scope
This commit is contained in:
parent
6be87460e3
commit
345d8f920c
7 changed files with 23030 additions and 3503 deletions
|
@ -27,11 +27,15 @@ setup({
|
|||
version:
|
||||
readVersionFromPackageJson() || action.getInput("bun-version") || undefined,
|
||||
customUrl: action.getInput("bun-download-url") || undefined,
|
||||
registryUrl: action.getInput("registry-url") || undefined,
|
||||
scope: action.getInput("scope") || undefined,
|
||||
})
|
||||
.then(({ version, revision, cacheHit }) => {
|
||||
.then(({ version, revision, cacheHit, registryUrl, scope }) => {
|
||||
action.setOutput("bun-version", version);
|
||||
action.setOutput("bun-revision", revision);
|
||||
action.setOutput("cache-hit", cacheHit);
|
||||
action.setOutput("registry-url", registryUrl);
|
||||
action.setOutput("scope", scope);
|
||||
})
|
||||
.catch((error) => {
|
||||
action.setFailed(error);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue