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:
parent
10424c0149
commit
cce27a0961
1 changed files with 2 additions and 1 deletions
|
@ -9,7 +9,8 @@ const rootPackageJson = require('../../package.json');
|
||||||
|
|
||||||
const { Octokit } = require('@octokit/rest');
|
const { Octokit } = require('@octokit/rest');
|
||||||
const octokit = new Octokit({
|
const octokit = new Octokit({
|
||||||
userAgent: 'electron-npm-publisher'
|
userAgent: 'electron-npm-publisher',
|
||||||
|
auth: process.env.ELECTRON_GITHUB_TOKEN
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!process.env.ELECTRON_NPM_OTP) {
|
if (!process.env.ELECTRON_NPM_OTP) {
|
||||||
|
|
Loading…
Reference in a new issue