node-deploy-robot
TypeScript icon, indicating that this package has built-in type declarations

1.4.0 • Public • Published

Dependency Status devDependency Status Build Status npm version Downloads

tools

  • node-gyp build environment

development

  • npm i
  • npm run build
  • npm run tslint
  • node start.js

options

  • -m --mode [mode]
  • -p --port [port]
  • -h --host [host]

examples

  • node dist/start.js -m github -p 3000 -h 0.0.0.0

In Github, Gitlab

  1. Add a web hook for the repository, the trigger events should include comments of pull/merge request
  2. Create a robot account, and create a private access token for the account

Why no bitbucket or gogs?

Can not set private access token, and can not create comment, for now.

secure

for GIthub, create an environment variable named DEPLOY_ROBOT_ACCESS_TOKEN, for Gitlab, create an environment variable named DEPLOY_ROBOT_PRIVATE_TOKEN.

usage from nodejs

const robot = require("node-deploy-robot");
robot.start(app, "/", "github");

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.4.0
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.4.0
    3
  • 1.3.1
    0
  • 1.3.0
    0

Package Sidebar

Install

npm i node-deploy-robot

Weekly Downloads

3

Version

1.4.0

License

MIT

Last publish

Collaborators

  • plantain_00