build: remove deprecated octokit auth calls (#18205)
This commit is contained in:
parent
e63f527e76
commit
6770a8c64a
6 changed files with 19 additions and 23 deletions
|
@ -5,7 +5,9 @@ const args = require('minimist')(process.argv.slice(2), {
|
|||
boolean: ['automaticRelease', 'notesOnly', 'stable']
|
||||
})
|
||||
const ciReleaseBuild = require('./ci-release-build')
|
||||
const octokit = require('@octokit/rest')()
|
||||
const octokit = require('@octokit/rest')({
|
||||
auth: process.env.ELECTRON_GITHUB_TOKEN
|
||||
})
|
||||
const { execSync } = require('child_process')
|
||||
const { GitProcess } = require('dugite')
|
||||
|
||||
|
@ -27,8 +29,6 @@ if (!bumpType && !args.notesOnly) {
|
|||
}
|
||||
|
||||
const gitDir = path.resolve(__dirname, '..')
|
||||
octokit.authenticate({ type: 'token', token: process.env.ELECTRON_GITHUB_TOKEN })
|
||||
|
||||
async function getNewVersion (dryRun) {
|
||||
if (!dryRun) {
|
||||
console.log(`Bumping for new "${bumpType}" version.`)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue