Force all scope names to be lowercased (#39)

Fixes #38
This commit is contained in:
James M. Greene
2019-08-21 21:46:35 -05:00
committed by Danny McCormick
parent 3d792c1dbd
commit d43864199a
4 changed files with 9 additions and 3 deletions

View File

@ -28,6 +28,9 @@ function writeRegistryToFile(registryUrl, fileLocation) {
if (scope && scope[0] != '@') {
scope = '@' + scope;
}
if (scope) {
scope = scope.toLowerCase();
}
core.debug(`Setting auth in ${fileLocation}`);
let newContents = '';
if (fs.existsSync(fileLocation)) {