mirror of
https://github.com/actions/setup-node.git
synced 2024-11-26 19:39:25 +08:00
fix: EOL character on _email in username/password mode
This commit is contained in:
parent
2b65979b36
commit
952f7f9d8a
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+:|^)/, '');
|
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`;
|
newContents += registryPrefix + `:_email=dummy value` + os.EOL;
|
||||||
}
|
}
|
||||||
const authString = username
|
const authString = username
|
||||||
? registryPrefix + ':_password=${NODE_AUTH_TOKEN}'
|
? registryPrefix + ':_password=${NODE_AUTH_TOKEN}'
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/actions/setup-node.git"
|
"url": "git+https://github.com/rapid-platform/setup-node.git"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"actions",
|
"actions",
|
||||||
|
@ -53,7 +53,7 @@ function writeRegistryToFile(
|
|||||||
|
|
||||||
if (username) {
|
if (username) {
|
||||||
newContents += registryPrefix + `:_username=${username}${os.EOL}`;
|
newContents += registryPrefix + `:_username=${username}${os.EOL}`;
|
||||||
newContents += registryPrefix + `:_email=dummy value`;
|
newContents += registryPrefix + `:_email=dummy value` + os.EOL;
|
||||||
}
|
}
|
||||||
|
|
||||||
const authString: string = username
|
const authString: string = username
|
||||||
|
Loading…
Reference in New Issue
Block a user