From 455a61d210496ef2a4e4665ffc1274a733b6a196 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Mon, 4 Dec 2017 20:32:24 -0600 Subject: [PATCH] in the npm upload step, explain the needed npm credentials --- docs/development/releasing.md | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/docs/development/releasing.md b/docs/development/releasing.md index ef0c652695..b24241ecd3 100644 --- a/docs/development/releasing.md +++ b/docs/development/releasing.md @@ -238,8 +238,32 @@ the correct checksums as specified in the SHASUMS files. ## Publish to npm -Once the publish is successful, run `npm run publish-to-npm` to publish to -release to npm. +Before publishing to npm, you'll need to log into npm as Electron. Optionally, +you may find [npmrc](https://www.npmjs.com/package/npmrc) to be a useful way +to keep Electron's profile side-by-side with your own: +```sh +$ sudo npm install -g npmrc +$ npmrc -c electron +Removing old .npmrc (default) +Activating .npmrc "electron" +``` + +The Electron account's credentials are stored in LastPass under the entry +"Electron - NPM" for the URL "https://www.npmjs.com/login". +```sh +$ npm login +Username: electron +Password: +Email: (this IS public) electron@github.com +``` + +Publish the release to npm. +```sh +$ npm whoami +electron +$ npm run publish-to-npm +``` + [the releases page]: https://github.com/electron/electron/releases [this bump commit]: https://github.com/electron/electron/commit/78ec1b8f89b3886b856377a1756a51617bc33f5a