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