mirror of
https://github.com/actions/setup-node.git
synced 2026-03-25 13:40:19 +00:00
Merge 094c1c12f4 into 2a017f350d
This commit is contained in:
commit
44285d0635
@ -25,6 +25,12 @@ function writeRegistryToFile(
|
||||
if (!scope && registryUrl.indexOf('npm.pkg.github.com') > -1) {
|
||||
scope = github.context.repo.owner;
|
||||
}
|
||||
if (!scope) {
|
||||
let namePrefix = require('./package').name.match('@[^/]+');
|
||||
if (namePrefix) {
|
||||
scope = namePrefix[0];
|
||||
}
|
||||
}
|
||||
if (scope && scope[0] != '@') {
|
||||
scope = '@' + scope;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user