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

ensures that we don't get hit with a rate limit while trying to publish a release.
This commit is contained in:
John Kleinschmidt 2021-07-27 09:52:18 -04:00 committed by GitHub
parent 10424c0149
commit cce27a0961
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {