load .env in various release scripts
This commit is contained in:
parent
5a796f62ab
commit
823f03c1ff
5 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
require('dotenv-safe').load()
|
||||||
|
|
||||||
const assert = require('assert')
|
const assert = require('assert')
|
||||||
const request = require('request')
|
const request = require('request')
|
||||||
const buildAppVeyorURL = 'https://windows-ci.electronjs.org/api/builds'
|
const buildAppVeyorURL = 'https://windows-ci.electronjs.org/api/builds'
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
require('dotenv-safe').load()
|
||||||
|
|
||||||
const GitHub = require('github')
|
const GitHub = require('github')
|
||||||
const github = new GitHub()
|
const github = new GitHub()
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
|
require('dotenv-safe').load()
|
||||||
require('colors')
|
require('colors')
|
||||||
const args = require('minimist')(process.argv.slice(2), {
|
const args = require('minimist')(process.argv.slice(2), {
|
||||||
boolean: ['automaticRelease', 'notesOnly', 'stable']
|
boolean: ['automaticRelease', 'notesOnly', 'stable']
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
|
require('dotenv-safe').load()
|
||||||
require('colors')
|
require('colors')
|
||||||
const args = require('minimist')(process.argv.slice(2))
|
const args = require('minimist')(process.argv.slice(2))
|
||||||
const assert = require('assert')
|
const assert = require('assert')
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
require('dotenv-safe').load()
|
||||||
|
|
||||||
const GitHub = require('github')
|
const GitHub = require('github')
|
||||||
const github = new GitHub()
|
const github = new GitHub()
|
||||||
github.authenticate({type: 'token', token: process.env.ELECTRON_GITHUB_TOKEN})
|
github.authenticate({type: 'token', token: process.env.ELECTRON_GITHUB_TOKEN})
|
||||||
|
|
Loading…
Add table
Reference in a new issue