feat: add auth setup to private registry with scope

This commit is contained in:
Vitor Gomes 2023-09-09 00:01:25 -03:00
parent 6be87460e3
commit 345d8f920c
7 changed files with 23030 additions and 3503 deletions

View file

@ -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);