mirror of
https://github.com/actions/setup-node.git
synced 2026-06-29 17:51:40 +00:00
Compare commits
2 Commits
8c17cffbbc
...
874b5ade38
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
874b5ade38 | ||
|
|
e3bde20469 |
@ -26,10 +26,10 @@ function writeRegistryToFile(
|
||||
scope = github.context.repo.owner;
|
||||
}
|
||||
if (!scope) {
|
||||
const namePrefix = packageJson('name')?.match(/^(@[^/]+)\//);
|
||||
if (namePrefix) {
|
||||
scope = namePrefix[1];
|
||||
}
|
||||
const namePrefix = packageJson('name')?.match(/^(@[^/]+)\//);
|
||||
if (namePrefix) {
|
||||
scope = namePrefix[1];
|
||||
}
|
||||
}
|
||||
if (scope && scope[0] != '@') {
|
||||
scope = '@' + scope;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user