Skip to content

Azure DevOps Artifacts support for registry-url#746

Open
tylerjwatson wants to merge 5 commits into
actions:mainfrom
rapid-platform:feature/npm-username-password
Open

Azure DevOps Artifacts support for registry-url#746
tylerjwatson wants to merge 5 commits into
actions:mainfrom
rapid-platform:feature/npm-username-password

Conversation

@tylerjwatson

Copy link
Copy Markdown

Description:
actions/setup-node does not support Azure DevOps Artifacts even though DevOps is also a Microsoft product. This is because actions/setup-node configures a temporary .npmrc file with an _authToken syntax, but AzureDevops requires npm's :username, ":_password", and ":email" syntax.

This patch adds support for Azure DevOps, and other registries by adding a username action input parameter. When this is input is set, the .npmrc file will be written with a :username, :_password and :email instead of an :_authToken.

Fetching private scoped packages from Azure DevOps Artifacts is now supported and working with this patch.

Related issue:
N/A

Check list:

  • Mark if documentation changes are required.
  • Mark if tests were added or updated to cover the changes.

@tylerjwatson
tylerjwatson requested a review from a team as a code owner April 26, 2023 13:05
@erdenerrallas19

Copy link
Copy Markdown

?

@andyleejordan

Copy link
Copy Markdown

Omg, this needs to be merged. I just spent a day and half hitting my head against my desk unable to get my GitHub Workflows to use my ADO feed (even though I was able to configure Dependabot, on GitHub just fine) only to finally realize the ADO feed requires username/password, not an auth token. And that's not supported (yet). Can't just put it in my .npmrc because then local builds break.

This has been open a year...@dmitry-shibanov can you please review and release this addition? Thank you!

Comment thread action.yml
description: 'Used to specify a package manager for caching in the default directory. Supported values: npm, yarn, pnpm.'
cache-dependency-path:
description: 'Used to specify the path to a dependency file: package-lock.json, yarn.lock, etc. Supports wildcards or a list of file names for caching multiple dependencies.'
username:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I would suggest adding an explicit password value too, instead of doubling up on authToken as they are very much not one and the same.

@andyfisher100

andyfisher100 commented Aug 29, 2024

Copy link
Copy Markdown

This is a must have for this action in my opinion. Until Github Packages has more investment thrown behind it to add support for more packages types that Azure DevOps has, we will be confined to using Azure DevOps Overall

Can this please be worked on and merged? @dmitry-shibanov it seems this needs a review as suggested by @andyleejordan?

@Egor4ik888 Egor4ik888 mentioned this pull request Nov 10, 2024
Closed
@enyil

enyil commented Dec 2, 2024

Copy link
Copy Markdown

I can see other EMU customers getting this issue. Any updates on this?

@andyleejordan

Copy link
Copy Markdown

This really needs to get in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants