Browse Source

chore: update publish to npm to use GitHub token (#30291)

ensures that we don't get hit with a rate limit while trying to publish a release.

Co-authored-by: John Kleinschmidt <[email protected]>
trop[bot] 3 years ago
parent
commit
62e4493d1c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      script/release/publish-to-npm.js

+ 2 - 1
script/release/publish-to-npm.js

@@ -9,7 +9,8 @@ const rootPackageJson = require('../../package.json');
 
 const { Octokit } = require('@octokit/rest');
 const octokit = new Octokit({
-  userAgent: 'electron-npm-publisher'
+  userAgent: 'electron-npm-publisher',
+  auth: process.env.ELECTRON_GITHUB_TOKEN
 });
 
 if (!process.env.ELECTRON_NPM_OTP) {