feat(post): Adds GitHub Enterprise support

Adds githubApiPathPrefix option for GitHub Enterprise APIs. Removes parse-github-repo-url check from
verify to support custom GitHub URLs

closes #146
This commit is contained in:
jrwebdev
2016-01-18 18:29:15 +13:00
parent 6492693489
commit 2644badeec
4 changed files with 3 additions and 21 deletions
+1
View File
@@ -157,6 +157,7 @@ These options are currently available:
- `debug`: If true doesn’t actually publish to npm or write things to file. Default: `!process.env.CI`
- `githubToken`: The token used to authenticate with GitHub. Default: `process.env.GH_TOKEN`
- `githubUrl`: Optional. Pass your GitHub Enterprise endpoint.
- `githubApiPathPrefix`: Optional. The path prefix for your GitHub Enterprise API.
_A few notes on `npm` config_:
1. The `npm` token can only be defined in the environment as `NPM_TOKEN`, because that’s where `npm` itself is going to read it from.