We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20a965d commit 094c1c1Copy full SHA for 094c1c1
src/authutil.ts
@@ -25,8 +25,11 @@ function writeRegistryToFile(
25
if (!scope && registryUrl.indexOf('npm.pkg.github.com') > -1) {
26
scope = github.context.repo.owner;
27
}
28
- if (!scope && namePrefix = require('./package').name.match('@[^/]+')) {
29
- scope = namePrefix[0];
+ if (!scope) {
+ let namePrefix = require('./package').name.match('@[^/]+');
30
+ if (namePrefix) {
31
+ scope = namePrefix[0];
32
+ }
33
34
if (scope && scope[0] != '@') {
35
scope = '@' + scope;
0 commit comments