Skip to content

Azure DevOps Npm Package Feed & Update detection #8610

Answered by rarkins
japj asked this question in Request Help
Discussion options

You must be logged in to vote

You could try this:

"packageRules": [{
  "matchDatasources": ["npm"],
  "npmrc": "registry=https://registry.npmjs.org"
}, {
  "matchDatasources": ["npm"],
  "matchUpdateTypes": ["pin", "patch", "minor", "major"],
  "npmrc": null
}]

The idea is that the first rule overrides your npmrc to use the main registry, and the second one resets it. If null doesn't work then you could try copying your original npmrc instead (the one that points to your private registry).

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@japj

This comment has been hidden.

@viceice

This comment has been hidden.

Answer selected by japj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants