src/release/prerelease.js
function validGh (opts) {
  if (!opts.ghrelease) {
    return Promise.resolve(true)
  }

  if (!opts.ghtoken) {
    return Promise.reject(new Error('Missing GitHub access token. ' +
                                    'Have you set `AEGIR_GHTOKEN`?'))
  }
  return Promise.resolve()
}
function validGh (opts) {
  if (!opts.ghrelease) {
    return Promise.resolve(true)
  }

  if (!opts.ghtoken) {
    return Promise.reject(new Error('Missing GitHub access token. ' +
                                    'Have you set `AEGIR_GHTOKEN`?'))
  }
  return Promise.resolve()
}
function validGh ( opts ) { if ( ! opts . ghrelease ) { return Promise . resolve ( true ) } if ( ! opts . ghtoken ) { return Promise . reject ( new Error ( 'Missing GitHub access token. ' + 'Have you set `AEGIR_GHTOKEN`?' ) ) } return Promise . resolve ( ) }
Check if there are valid GitHub credentials for publishing this module
Check if there are valid GitHub credentials for publishing this module