2016-05-25 12:16:26 -07:00
2016-05-25 12:15:15 -07:00
2016-05-25 12:15:15 -07:00
2015-09-14 14:27:53 -07:00
2015-08-31 10:41:52 -07:00
2015-10-16 00:54:52 -07:00
2016-05-25 12:15:01 -07:00
2016-05-25 12:16:26 -07:00

drone-npm

Build Status Coverage Status

Drone plugin to publish files and artifacts to a NPM registry. For the usage information and a listing of the available options please take a look at the docs.

Binary

Build the binary using make:

make deps build

Example

./drone-npm <<EOF
{
    "repo": {
        "clone_url": "git://github.com/drone/drone",
        "owner": "drone",
        "name": "drone",
        "full_name": "drone/drone"
    },
    "system": {
        "link_url": "https://beta.drone.io"
    },
    "build": {
        "number": 22,
        "status": "success",
        "started_at": 1421029603,
        "finished_at": 1421029813,
        "message": "Update the Readme",
        "author": "johnsmith",
        "author_email": "john.smith@gmail.com"
        "event": "push",
        "branch": "master",
        "commit": "436b7a6e2abaddfd35740527353e78a227ddcb2c",
        "ref": "refs/heads/master"
    },
    "workspace": {
        "root": "/drone/src",
        "path": "/drone/src/github.com/drone/drone"
    },
    "vargs": {
        "username": "octocat",
        "password": "pa$$word",
        "email": "octocat@github.com"
    }
}
EOF

Docker

Build the container using make:

make deps docker

Example

docker run -i plugins/drone-npm <<EOF
{
    "repo": {
        "clone_url": "git://github.com/drone/drone",
        "owner": "drone",
        "name": "drone",
        "full_name": "drone/drone"
    },
    "system": {
        "link_url": "https://beta.drone.io"
    },
    "build": {
        "number": 22,
        "status": "success",
        "started_at": 1421029603,
        "finished_at": 1421029813,
        "message": "Update the Readme",
        "author": "johnsmith",
        "author_email": "john.smith@gmail.com"
        "event": "push",
        "branch": "master",
        "commit": "436b7a6e2abaddfd35740527353e78a227ddcb2c",
        "ref": "refs/heads/master"
    },
    "workspace": {
        "root": "/drone/src",
        "path": "/drone/src/github.com/drone/drone"
    },
    "vargs": {
        "username": "octocat",
        "password": "pa$$word",
        "email": "octocat@github.com"
    }
}
EOF
S
Description
No description provided
Readme Apache-2.0 1.1 MiB
Languages
Go 100%