{"id":44332705,"url":"https://github.com/drone-plugins/drone-npm","last_synced_at":"2026-02-11T10:30:48.274Z","repository":{"id":1358983,"uuid":"41690667","full_name":"drone-plugins/drone-npm","owner":"drone-plugins","description":"Drone plugin for publishing packages to NPM","archived":false,"fork":false,"pushed_at":"2025-03-03T15:15:20.000Z","size":258,"stargazers_count":20,"open_issues_count":5,"forks_count":20,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-03T15:25:00.326Z","etag":null,"topics":["drone","drone-plugin"],"latest_commit_sha":null,"homepage":"http://plugins.drone.io/drone-plugins/drone-npm","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drone-plugins.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-31T17:41:52.000Z","updated_at":"2025-03-03T15:15:24.000Z","dependencies_parsed_at":"2023-01-11T16:03:38.567Z","dependency_job_id":null,"html_url":"https://github.com/drone-plugins/drone-npm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/drone-plugins/drone-npm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drone-plugins%2Fdrone-npm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drone-plugins%2Fdrone-npm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drone-plugins%2Fdrone-npm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drone-plugins%2Fdrone-npm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drone-plugins","download_url":"https://codeload.github.com/drone-plugins/drone-npm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drone-plugins%2Fdrone-npm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29332277,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T06:13:03.264Z","status":"ssl_error","status_checked_at":"2026-02-11T06:12:55.843Z","response_time":97,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["drone","drone-plugin"],"created_at":"2026-02-11T10:30:48.159Z","updated_at":"2026-02-11T10:30:48.264Z","avatar_url":"https://github.com/drone-plugins.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# drone-npm\n\n[![Build Status](http://cloud.drone.io/api/badges/drone-plugins/drone-npm/status.svg)](http://cloud.drone.io/drone-plugins/drone-npm)\n[![Gitter chat](https://badges.gitter.im/drone/drone.png)](https://gitter.im/drone/drone)\n[![Join the discussion at https://discourse.drone.io](https://img.shields.io/badge/discourse-forum-orange.svg)](https://discourse.drone.io)\n[![Drone questions at https://stackoverflow.com](https://img.shields.io/badge/drone-stackoverflow-orange.svg)](https://stackoverflow.com/questions/tagged/drone.io)\n[![](https://images.microbadger.com/badges/image/plugins/npm.svg)](https://microbadger.com/images/plugins/npm \"Get your own image badge on microbadger.com\")\n[![Go Doc](https://godoc.org/github.com/drone-plugins/drone-npm?status.svg)](http://godoc.org/github.com/drone-plugins/drone-npm)\n[![Go Report](https://goreportcard.com/badge/github.com/drone-plugins/drone-npm)](https://goreportcard.com/report/github.com/drone-plugins/drone-npm)\n\nDrone plugin to publish files and artifacts to a private or public NPM registry. For the usage information and a listing of the available options please take a look at [the docs](http://plugins.drone.io/drone-plugins/drone-npm/).\n\n## Build\n\nBuild the binary with the following command:\n\n```console\nexport GOOS=linux\nexport GOARCH=amd64\nexport CGO_ENABLED=0\nexport GO111MODULE=on\n\ngo build -v -a -tags netgo -o release/linux/amd64/drone-npm\n```\n\n## Docker\n\nBuild the Docker image with the following command:\n\n```console\ndocker build \\\n  --label org.label-schema.build-date=$(date -u +\"%Y-%m-%dT%H:%M:%SZ\") \\\n  --label org.label-schema.vcs-ref=$(git rev-parse --short HEAD) \\\n  --file docker/Dockerfile.linux.amd64 --tag plugins/npm .\n```\n\n## Usage\n### Standard Local Usage\n```console\ndocker run --rm \\\n  -e NPM_USERNAME=drone \\\n  -e NPM_PASSWORD=password \\\n  -e NPM_EMAIL=drone@drone.io \\\n  -v $(pwd):$(pwd) \\\n  -w $(pwd) \\\n  plugins/npm\n```\n#### With a specified registry for validation\nThis will allow the setting of the defautl publishing registry. This will also raise a validation error if the publish configuration of the npm package is not pointing to the specified registry.\n```console\ndocker run --rm \\\n  -e NPM_USERNAME=drone \\\n  -e NPM_PASSWORD=password \\\n  -e NPM_EMAIL=drone@drone.io \\\n  -e NPM_REGISTRY=\"https://fakenpm.reg.org/good/path\" \\\n  -v $(pwd):$(pwd) \\\n  -w $(pwd) \\\n  plugins/npm\n```\n\n#### Ignore registry validation\nThis will all the setting of a default publishing registry but will skip the verification of it being the same as the one in the npmrc. In this instance no validation error is raised and the registry in the npm rc is used\n```console\ndocker run --rm \\\n  -e NPM_USERNAME=drone \\\n  -e NPM_PASSWORD=password \\\n  -e NPM_EMAIL=drone@drone.io \\\n  -e NPM_REGISTRY=\"https://fakenpm.reg.org/good/path\" \\\n  -e PLUGIN_SKIP_REGISTRY_VALIDATION=true \\\n  -v $(pwd):$(pwd) \\\n  -w $(pwd) \\\n  plugins/npm\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrone-plugins%2Fdrone-npm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrone-plugins%2Fdrone-npm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrone-plugins%2Fdrone-npm/lists"}