Skip to content

Commit

Permalink
fix: registry url default
Browse files Browse the repository at this point in the history
  • Loading branch information
sethyates committed Oct 30, 2022
1 parent c2fff80 commit ae487cd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ inputs:
default: 'false'
registry-url:
description: 'Registry to set up for auth. Will set the registry in a project level .npmrc file.'
default: 'https://npm.pkg.github.com/'
scope:
description: 'Optional scope for authenticating against scoped registries. Will fall back to the repository owner when using the GitHub Packages registry (https://npm.pkg.github.com/).'
token:
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/authutil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function writeRegistryToFile(
fileLocation: string,
alwaysAuth: string
): void {
if (!registryUrl) {
if (!registryUrl || registryUrl.length === 0) {
registryUrl = 'https://npm.pkg.github.com/'
}
if (!scope && registryUrl.includes('npm.pkg.github.com')) {
Expand Down

0 comments on commit ae487cd

Please sign in to comment.