Using the library with ADO Pipelines
Authentication from Azure DevOps pipeline
Adding this to your .yml config file is enough to install the Grammar NPM package:
- task: Npm@1 inputs: command: 'install' customRegistry: 'useFeed' customFeed: '1fb98496-3ae4-449b-9e2f-ada51bb5e74c'ADO will inject a temporary .npmrc for the build with the snippet above that acts as a temporary authentication token. We have npmjs set as an upstream feed to our own, so you will be able to install our package as well as any “public” NPM packages.
Should you need to install from multiple feeds in our ADO organization this will not work, and you will instead need to create your own .npmrc file and handle authentication on your own.