@bcgov/gh-deploy
A cli and importable node module wrapper around the github deployments api
Last updated 11 days ago by patricksimonian .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @bcgov/gh-deploy 
SYNC missed versions from official npm registry.

Gh-Deploy

A simple CLI and node package that wraps creating github deployments and statuses

Github Deployments API docs can be found here

Startup

As A CLI

npx @bcgov/gh-deploy -h

As a node module

npm install --save @bcgov/gh-deploy

API

createDeployment

creates a deployment to a given environment

// in a js file

import { createDeployment } from '@bcgov/gh-deploy'

createDeployment({
  environment: 'production'
}, repo, owner, token)
.then(() => null);

createDeploymentStatus

creates a status for a specific deployment

// in a js file

import { createDeploymentStatus } from '@bcgov/gh-deploy'

createDeploymentStatus({
  state: 'success'
}, repo, owner, token)
.then(() => null);


getPendingDeployments

returns number of pending deployments

// in a js file

import { getPendingDeployments } from '@bcgov/gh-deploy'

getPendingDeployments({
  environment: 'production',
}, repo, owner, token)
.then(() => null);

Current Tags

  • 1.1.1                                ...           latest (11 days ago)

8 Versions

  • 1.1.1                                ...           11 days ago
  • 1.1.0 [deprecated]           ...           11 days ago
  • 1.0.5                                ...           2 months ago
  • 1.0.4                                ...           2 months ago
  • 1.0.3                                ...           2 months ago
  • 1.0.2                                ...           2 months ago
  • 1.0.1                                ...           2 months ago
  • 1.0.0                                ...           2 months ago
Downloads
Today 0
This Week 0
This Month 31
Last Day 0
Last Week 0
Last Month 53
Dependencies (5)
Dev Dependencies (8)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |