build: quash octokit deprecation warning (#24790)

This commit is contained in:
Shelley Vohr 2020-08-05 08:59:52 -07:00 committed by GitHub
parent 99874fd71f
commit 9274117e12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 124 additions and 131 deletions

View file

@ -5,9 +5,7 @@ const args = require('minimist')(process.argv.slice(2), {
boolean: ['automaticRelease', 'notesOnly', 'stable']
});
const ciReleaseBuild = require('./ci-release-build');
const octokit = require('@octokit/rest')({
auth: process.env.ELECTRON_GITHUB_TOKEN
});
const { Octokit } = require('@octokit/rest');
const { execSync } = require('child_process');
const { GitProcess } = require('dugite');
@ -18,6 +16,10 @@ const { getCurrentBranch, ELECTRON_DIR } = require('../lib/utils.js');
const bumpType = args._[0];
const targetRepo = bumpType === 'nightly' ? 'nightlies' : 'electron';
const octokit = new Octokit({
auth: process.env.ELECTRON_GITHUB_TOKEN
});
require('colors');
const pass = '✓'.green;
const fail = '✗'.red;