build: do not load dotenv on CI

This commit is contained in:
Zeke Sikelianos 2018-07-19 11:48:13 -07:00
parent f2a7fd44ce
commit 94ea703a32
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()