mirror of
https://github.com/actions/setup-node.git
synced 2026-06-28 17:19:57 +00:00
Compare commits
3 Commits
19003f30f9
...
4384fccfea
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4384fccfea | ||
|
|
094c1c12f4 | ||
|
|
20a965d27f |
@ -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