Socket
Book a DemoInstallSign in
Socket

github-publisher

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-publisher

publish to github repo with 1 line

1.4.2
latest
npmnpm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Github-publisher

Github-publisher is a simple library that allows you to push to GitHub with just one command. With the latest version of Github-publisher, it also handles the generation of a CHANGELOG file for your repository.

Installation

To install Github-publisher, use the following command:

  npm install -g github-publisher

Usage

Creating a New Repository

To create a new repository on GitHub and push your code to it, use the following command:

github-publisher https://github.com/<username>/<reponame>.git

You can also use the shorter alias gp:

gp https://github.com/<username>/<reponame>.git

Pushing to an Existing Repository

If you already have a repository and want to push a commit to it, use the following command:

github-publisher <commit>

Again, you can use the shorter alias gp:

gp <commit>

Writing Changelog

Github-publisher allows you to include your commit in specific sections of the CHANGELOG file. Use the following flags to indicate the type of commit:

  • --bugfix or -B: Add the commit under the "Fixed Bugs" section in the CHANGELOG.
  • --feature or -F: Add the commit under the "Implemented Enhancements" section in the CHANGELOG.

If you don't provide any flags, the commit will be pushed to GitHub without modifying the CHANGELOG.

Examples

Here's an example of using Github-publisher to create a new repository and push code to it:

gp https://github.com/<username>/<reponame>.git

Here's an example of using Github-publisher to publish new feature:

gp Added the ability to generate changelog -F

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the Github-publisher repository.

License

Github-publisher is released under the MIT License.

Keywords

GitHub

FAQs

Package last updated on 14 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.