autogit-plugin-github-publish
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Autogit Plugin - Github Publish

A plugin for publishing repositories to GitHub.

Install

npm install --save autogit-plugin-github-publish

Usage

Options

This plugin uses the following options object:

{
  remote: 'origin', // Using this name for the newly created repository
  token: '', // GitHub token
  message: 'Initial commit', // Commit message for the initial commit, set it to false to disable this
  force: false, // Don't ask for confirmation
  private: false, // Don't publish as private
  ssh: true // Use SSH rather than HTTPS
}

Configuration

Add this plugin to a command:

const publish = require ( 'autogit-plugin-github-publish' );

module.exports = {
  commands: {
    'my-command': [
      publish ({ token: 'MY_GITHUB_TOKEN' })
    ]
  }
}

License

MIT © Fabio Spampinato

/autogit-plugin-github-publish/

    Package Sidebar

    Install

    npm i autogit-plugin-github-publish

    Weekly Downloads

    1

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    17.6 kB

    Total Files

    8

    Last publish

    Collaborators

    • fabiospampinato