Skip to content

Commit

Permalink
chore: upload the npm archive to gh releases (electron#1445)
Browse files Browse the repository at this point in the history
  • Loading branch information
vhashimotoo authored Jun 16, 2020
1 parent 92517ea commit 104f586
Show file tree
Hide file tree
Showing 5 changed files with 320 additions and 151 deletions.
9 changes: 3 additions & 6 deletions lib/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@ if (!process.env.GH_TOKEN) {
require('dotenv-safe').load()
}

const Github = require('@octokit/rest')
const github = new Github({})

github.authenticate({
type: 'token',
token: process.env.GH_TOKEN,
const { Octokit } = require('@octokit/rest')
const github = new Octokit({
auth: process.env.GH_TOKEN,
})

module.exports = github
Loading

0 comments on commit 104f586

Please sign in to comment.