Blog: Continuous Deployment

How to publish an NPM package in AppVeyor

June 17, 2018, (updated on July 14, 2018), 2 comments, Software Development

For some open-source projects I need to publish NPM packages during the CI release on AppVeyor. Unlike with NuGet packages, you have to do that manually by installing NodeJS and NPM, creating an .npmrc file with your NPM credentials and publishing the package. This blog post describes this procedure in detail. Retrieve auth token To authenticate with the NPM feed, you have to manually retrieve the auth token. To do so, you have to first login to NPM via CLI: npm login This command creates or updates the .npmrc file in your local user directory (‪C:\Users\MyUser\.npmrc). The file […] Read more...

Tags: , , , , , ,

  Page 1 of 1