Socket
Socket
Sign inDemoInstall

deploy-gh

Package Overview
Dependencies
24
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    deploy-gh

A simple script to deploy main branch to GitHub pages


Version published
Weekly downloads
515
increased by135.16%
Maintainers
1
Install size
601 kB
Created
Weekly downloads
 

Readme

Source

deploy-gh

npm version

A simple script to deploy your GitHub project's main branch to GitHub pages.

See this package in action here.

Installation

npm install --save-dev deploy-gh

Usage

This script makes a best effort attempt to pick out your GitHub project's main branch (this prefers main if that branch exists, otherwise it falls back to master). Then it merges this into the gh-pages branch and pushes this back to the remote origin.

First, make sure you have an index.html file in the root of your repository.

Next, inside package.json:

  "scripts": {
    "test": "... whatever you normally have here ...",
    "deploy": "deploy-gh"
  },

To run this, make sure all changes are committed on your main branch and then run npm run deploy.

Keywords

FAQs

Last updated on 10 Jan 2022

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc