Access artifacts from one project to another in azure devops
Azure Artifacts Permissions
Go to permissions of the project-scoped artifact and provide permissions to Build service of that project.
Search in this format:
| The project-level build identity is named [Project name] Build Service ([Organization name])
, for example FabrikamFiber Build Service (codesharing-demo)
.
Project level Permissions
Go to the same project settings and allow Reader access to the same build service.
We don't need to use any authentication for feeds within the same organization.
Reference:
Add npmAuthenticate@0 task
Add the above task in the pipelines so that it can add the credentials in the existing npmrc file. Do not add creds manually in the file.
Similary for nuget, either use nugetAuthenitcate task or donetCore tasks will add credentials automatically.