mirror of
https://github.com/actions/setup-node.git
synced 2026-03-22 11:40:21 +00:00
Merge 094c1c12f4 into 5e21ff4d9b
This commit is contained in:
commit
d6fe460058
@ -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