Add auth setup for private registry with scope (#16)

feat: add auth setup to private registry with scope
This commit is contained in:
Vitor Gomes 2023-11-01 06:17:17 -03:00 committed by GitHub
parent 6be87460e3
commit 830e319e28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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);