Azure DevOps Artifacts support for registry-url #746
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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: