mirror of
https://github.com/actions/setup-node.git
synced 2026-06-29 09:31:40 +00:00
Compare commits
3 Commits
d6fe460058
...
ccbdde6aa0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ccbdde6aa0 | ||
|
|
094c1c12f4 | ||
|
|
20a965d27f |
@ -25,6 +25,12 @@ function writeRegistryToFile(
|
|||||||
if (!scope && registryUrl.indexOf('npm.pkg.github.com') > -1) {
|
if (!scope && registryUrl.indexOf('npm.pkg.github.com') > -1) {
|
||||||
scope = github.context.repo.owner;
|
scope = github.context.repo.owner;
|
||||||
}
|
}
|
||||||
|
if (!scope) {
|
||||||
|
let namePrefix = require('./package').name.match('@[^/]+');
|
||||||
|
if (namePrefix) {
|
||||||
|
scope = namePrefix[0];
|
||||||
|
}
|
||||||
|
}
|
||||||
if (scope && scope[0] != '@') {
|
if (scope && scope[0] != '@') {
|
||||||
scope = '@' + scope;
|
scope = '@' + scope;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user