3
0
Fork 0
mirror of https://gitea.com/actions/setup-node.git synced 2024-11-24 11:09:33 +01:00

fix: devOps identifier incorrect

This commit is contained in:
Tyler Watson 2023-04-26 22:57:11 +10:00
parent 952f7f9d8a
commit e6b1dcc8ef
2 changed files with 4 additions and 4 deletions

4
dist/setup/index.js vendored
View file

@ -71082,8 +71082,8 @@ function writeRegistryToFile(registryUrl, fileLocation, alwaysAuth, username) {
// Remove http: or https: from front of registry.
const registryPrefix = registryUrl.replace(/(^\w+:|^)/, '');
if (username) {
newContents += registryPrefix + `:_username=${username}${os.EOL}`;
newContents += registryPrefix + `:_email=dummy value` + os.EOL;
newContents += registryPrefix + `:username=${username}${os.EOL}`;
newContents += registryPrefix + `:email=dummy value` + os.EOL;
}
const authString = username
? registryPrefix + ':_password=${NODE_AUTH_TOKEN}'

View file

@ -52,8 +52,8 @@ function writeRegistryToFile(
const registryPrefix = registryUrl.replace(/(^\w+:|^)/, '');
if (username) {
newContents += registryPrefix + `:_username=${username}${os.EOL}`;
newContents += registryPrefix + `:_email=dummy value` + os.EOL;
newContents += registryPrefix + `:username=${username}${os.EOL}`;
newContents += registryPrefix + `:email=dummy value` + os.EOL;
}
const authString: string = username