mirror of
https://gitea.com/actions/setup-node.git
synced 2026-01-20 17:03:59 +08:00
fix: EOL character on _email in username/password mode
This commit is contained in:
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
@@ -71083,7 +71083,7 @@ function writeRegistryToFile(registryUrl, fileLocation, alwaysAuth, username) {
|
||||
const registryPrefix = registryUrl.replace(/(^\w+:|^)/, '');
|
||||
if (username) {
|
||||
newContents += registryPrefix + `:_username=${username}${os.EOL}`;
|
||||
newContents += registryPrefix + `:_email=dummy value`;
|
||||
newContents += registryPrefix + `:_email=dummy value` + os.EOL;
|
||||
}
|
||||
const authString = username
|
||||
? registryPrefix + ':_password=${NODE_AUTH_TOKEN}'
|
||||
|
||||
Reference in New Issue
Block a user