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
fix: devOps identifier incorrect
  • Loading branch information
tylerjwatson committed Apr 26, 2023
commit e6b1dcc8efa8646b11be8fec63691d369ff8bb8c
4 changes: 2 additions & 2 deletions dist/setup/index.js
Original file line number Diff line number Diff line change
@@ -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}'
4 changes: 2 additions & 2 deletions src/authutil.ts
Original file line number Diff line number Diff line change
@@ -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