From 952f7f9d8a67c272a81b18d365a462df99ece629 Mon Sep 17 00:00:00 2001 From: Tyler Watson Date: Wed, 26 Apr 2023 22:28:38 +1000 Subject: [PATCH] fix: EOL character on _email in username/password mode --- dist/setup/index.js | 2 +- package.json | 2 +- src/authutil.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index 2ae48da9..b84366ca 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -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}' diff --git a/package.json b/package.json index 89d2eaf8..e37003c5 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/actions/setup-node.git" + "url": "git+https://github.com/rapid-platform/setup-node.git" }, "keywords": [ "actions", diff --git a/src/authutil.ts b/src/authutil.ts index 04349be0..ffac7d44 100644 --- a/src/authutil.ts +++ b/src/authutil.ts @@ -53,7 +53,7 @@ function writeRegistryToFile( if (username) { newContents += registryPrefix + `:_username=${username}${os.EOL}`; - newContents += registryPrefix + `:_email=dummy value`; + newContents += registryPrefix + `:_email=dummy value` + os.EOL; } const authString: string = username