Publishing to npm Using AppVeyor

AppVeyor does not currently provide built-in support for publishing to npm (at least, currently). Instead, we can provide the npm token as an AppVeyor UI configured environment variable and run npm pack and npm publish.

Setup environment variable

In the AppVeyor web application, add an NPM_TOKEN environment variable using a token retrieved from https://www.npmjs.com/. Be sure to encrypt this token in AppVeyor!