Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure DevOps Artifacts support for registry-url #746

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: EOL character on _email in username/password mode
  • Loading branch information
tylerjwatson committed Apr 26, 2023
commit 952f7f9d8a67c272a81b18d365a462df99ece629
2 changes: 1 addition & 1 deletion dist/setup/index.js
Original file line number Diff line number Diff line change
@@ -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}'
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
2 changes: 1 addition & 1 deletion src/authutil.ts
Original file line number Diff line number Diff line change
@@ -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