set-ci

1.1.0 • Public • Published

set-ci

Sets continuous integration variables on a key in a package.json

$ npm init -y
$ npx set-ci
$ cat package.json
{
  "name": "test",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "Marc Bachmann <marc.brookman@gmail.com>",
  "license": "MIT",
  "ci": {
    "isCi": true,
    "name": "Drone",
    "service": "drone",
    "commit": "0ffa90db60889e35cf67958eaa0aec7eb8cd12b1",
    "tag": "some-commit-tag",
    "build": "87",
    "branch": "some-commit-branch",
    "job": "2",
    "pr": "4234",
    "isPr": true,
    "slug": "livingdocsIO/set-ci"
  },
  "customKey": {
    "isCi": false
  }
}%

Readme

Keywords

none

Package Sidebar

Install

npm i set-ci

Weekly Downloads

0

Version

1.1.0

License

MIT

Unpacked Size

4.78 kB

Total Files

5

Last publish

Collaborators

  • livingdocs-bot