gh-pages-with-token

A small utility to pass a GitHub token in Travis CI.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
gh-pages-with-token
211.0.07 years ago7 years agoMinified + gzip package size for gh-pages-with-token in KB

Readme

gh-pages-with-token
!Build Statustravis-imagetravis-url !npmnpm-imagenpm-url !dependenciesdeps-imagedeps-url !devDependenciesdepsdev-imagedepsdev-url
A small utility to pass a GitHub token in Travis CI.

Installation

$ npm i --save-dev gh-pages-with-token

Usage

package.json

{
  // ...
  "scripts": {
    "deploy": "gh-pages-with-token -d dist"
  }
}

Why?

This is a small utility that will utilize a GH_TOKEN environment variable in Travis CI. It will use this to construct a url that can be pushed to when using the gh-pages package. This will set the -r flag for you. Any other flags set will be passed along.

License

Copyright © 2016 Neil Kistner
Released under the MIT license. See license for details.