mirror of
				https://gitea.com/actions/setup-node.git
				synced 2025-11-04 07:47:14 +00:00 
			
		
		
		
	Dont always auth
This commit is contained in:
		@@ -41,7 +41,7 @@ function writeRegistryToFile(registryUrl, fileLocation) {
 | 
				
			|||||||
    const registryString = scope
 | 
					    const registryString = scope
 | 
				
			||||||
        ? `${scope}:registry=${registryUrl}`
 | 
					        ? `${scope}:registry=${registryUrl}`
 | 
				
			||||||
        : `registry=${registryUrl}`;
 | 
					        : `registry=${registryUrl}`;
 | 
				
			||||||
    newContents += `${registryString}${os.EOL}always-auth=true${os.EOL}${authString}`;
 | 
					    newContents += `${registryString}${os.EOL}${authString}`;
 | 
				
			||||||
    fs.writeFileSync(fileLocation, newContents);
 | 
					    fs.writeFileSync(fileLocation, newContents);
 | 
				
			||||||
    core.exportVariable('NPM_CONFIG_USERCONFIG', fileLocation);
 | 
					    core.exportVariable('NPM_CONFIG_USERCONFIG', fileLocation);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -39,7 +39,7 @@ function writeRegistryToFile(registryUrl: string, fileLocation: string) {
 | 
				
			|||||||
  const registryString = scope
 | 
					  const registryString = scope
 | 
				
			||||||
    ? `${scope}:registry=${registryUrl}`
 | 
					    ? `${scope}:registry=${registryUrl}`
 | 
				
			||||||
    : `registry=${registryUrl}`;
 | 
					    : `registry=${registryUrl}`;
 | 
				
			||||||
  newContents += `${registryString}${os.EOL}always-auth=true${os.EOL}${authString}`;
 | 
					  newContents += `${registryString}${os.EOL}${authString}`;
 | 
				
			||||||
  fs.writeFileSync(fileLocation, newContents);
 | 
					  fs.writeFileSync(fileLocation, newContents);
 | 
				
			||||||
  core.exportVariable('NPM_CONFIG_USERCONFIG', fileLocation);
 | 
					  core.exportVariable('NPM_CONFIG_USERCONFIG', fileLocation);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user