Closed asmundg closed 6 years ago
It rings a bell ;) Thanks
Now I remember I had this but doing that it just doesn't work if an npmrc is specified :(
do you have a sample of the kind of file you work with?
They tend to be of this type:
@foo:registry=https://foo.pkgs.visualstudio.com/_packaging/foo/npm/registry/
@bar:registry=https://bar.pkgs.visualstudio.com/_packaging/bar/npm/registry/
If I then add registry credentials to the yarn task, I end up with multiple registry=
entries, where yarn apparently tries to resolve all packages from the last such entry.
Thanks, I've got it to work on my test build and it's published. Can you confirm it's good for you?
Looks good, thanks!
When picking up registries from .npmrc, don't replace them. Adding unqualified registries will break when using multiple, namespaced registries, as yarn will attempt to use the last registry configured for all packages.