env-builder-github

GitHub backend for env-builder

node-env-builder-github

GitHub backend for env-builder

var builder = require('env-builder');
var github = require('env-builder-github');
 
var env = 'prod';
var types = ['ui', 'api'];
var app = 'my-app';
var path = 'my-org/my-config-repo';
 
var conf = github(path);
 
builder(env, types, app, conf, function(errENV) {
 
});

To access a private repo use one of the following combinations:

Set the following in the environment:

GITHUB_USERNAME=camshaft
GITHUB_PASSWORD=my-pass-123

Set the following in the environment:

GITHUB_TOKEN=github-auth-token-123

Pass auth in as an option:

var github = require('env-builder-github');
 
var conf = github(path, {
  auth: {
    username: 'camshaft',
    password: 'my-pass-123'
  }
});