mirror of
				https://github.com/actions/setup-node.git
				synced 2025-11-04 12:03:34 +00:00 
			
		
		
		
	fix: devOps identifier incorrect
This commit is contained in:
		
							parent
							
								
									952f7f9d8a
								
							
						
					
					
						commit
						e6b1dcc8ef
					
				
							
								
								
									
										4
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							@ -71082,8 +71082,8 @@ function writeRegistryToFile(registryUrl, fileLocation, alwaysAuth, username) {
 | 
				
			|||||||
    // Remove http: or https: from front of registry.
 | 
					    // Remove http: or https: from front of registry.
 | 
				
			||||||
    const registryPrefix = registryUrl.replace(/(^\w+:|^)/, '');
 | 
					    const registryPrefix = registryUrl.replace(/(^\w+:|^)/, '');
 | 
				
			||||||
    if (username) {
 | 
					    if (username) {
 | 
				
			||||||
        newContents += registryPrefix + `:_username=${username}${os.EOL}`;
 | 
					        newContents += registryPrefix + `:username=${username}${os.EOL}`;
 | 
				
			||||||
        newContents += registryPrefix + `:_email=dummy value` + os.EOL;
 | 
					        newContents += registryPrefix + `:email=dummy value` + os.EOL;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    const authString = username
 | 
					    const authString = username
 | 
				
			||||||
        ? registryPrefix + ':_password=${NODE_AUTH_TOKEN}'
 | 
					        ? registryPrefix + ':_password=${NODE_AUTH_TOKEN}'
 | 
				
			||||||
 | 
				
			|||||||
@ -52,8 +52,8 @@ function writeRegistryToFile(
 | 
				
			|||||||
  const registryPrefix = registryUrl.replace(/(^\w+:|^)/, '');
 | 
					  const registryPrefix = registryUrl.replace(/(^\w+:|^)/, '');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (username) {
 | 
					  if (username) {
 | 
				
			||||||
    newContents += registryPrefix + `:_username=${username}${os.EOL}`;
 | 
					    newContents += registryPrefix + `:username=${username}${os.EOL}`;
 | 
				
			||||||
    newContents += registryPrefix + `:_email=dummy value` + os.EOL;
 | 
					    newContents += registryPrefix + `:email=dummy value` + os.EOL;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  const authString: string = username
 | 
					  const authString: string = username
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user