@azure/devops
package to your project using the command npm install --save-dev @azure/devops
.package.json
file, add a new script that utilizes the vsts-npm-auth
command to authenticate with your Azure Artifacts feed. For example:"scripts": {
"azure-auth": "vsts-npm-auth -config .npmrc"
}
azure-auth
script to authenticate your request. This will create an .npmrc
file in your project root directory.npm publish
command to publish your package to Azure Artifacts. Make sure to use the --registry
flag to specify your Azure Artifacts feed. For example:"scripts": {
"azure-auth": "vsts-npm-auth -config .npmrc",
"publish": "npm publish --registry https://pkgs.dev.azure.com/{org}/{project}/_packaging/{feedId}/npm/{scope}/dist/ --access=public"
}
Replace {org}
, {project}
, {feedId}
, and {scope}
with your own values. The --access=public
flag makes your package accessible to the public.
publish
script to upload your package to Azure Artifacts.Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2023-05-15 06:25:54 +0000
Seen: 8 times
Last updated: May 15 '23
How can a role assignment be added to a managed identity that is assigned to a system in Azure?
How can key vault be utilized to access Azure blob storage in Databricks?
How can Oracle Tables in bulk be transferred to Azure Storage using Azure Data Factory?
What is the reason for the authentication failure in Azure GIT?
What is the process of utilizing Forge API with Azure, S3, or other storage systems?
How does UDP multicast work on Windows Azure cloud service?
How can the onpremisessamaccountname be included as a claim in the JWT token for Azure AD?