Merge pull request #13737 from electron/build--do-not-load-dotenv-on-CI

chore(ci): do not load dotenv on CI
This commit is contained in:
John Kleinschmidt 2018-07-19 15:32:10 -04:00 committed by GitHub
commit 3247d789f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,4 @@
require('dotenv-safe').load()
if (!process.env.CI) require('dotenv-safe').load()
const GitHub = require('github')
const github = new GitHub()

View file

@ -1,6 +1,6 @@
#!/usr/bin/env node
require('dotenv-safe').load()
if (!process.env.CI) require('dotenv-safe').load()
require('colors')
const args = require('minimist')(process.argv.slice(2), {
boolean: ['automaticRelease', 'notesOnly', 'stable']

View file

@ -1,6 +1,6 @@
#!/usr/bin/env node
require('dotenv-safe').load()
if (!process.env.CI) require('dotenv-safe').load()
require('colors')
const args = require('minimist')(process.argv.slice(2))
const fs = require('fs')

View file

@ -1,4 +1,4 @@
require('dotenv-safe').load()
if (!process.env.CI) require('dotenv-safe').load()
const GitHub = require('github')
const github = new GitHub()