{"id":20355348,"url":"https://github.com/artelydev/secure-publish","last_synced_at":"2025-09-23T14:30:40.278Z","repository":{"id":43341995,"uuid":"266105678","full_name":"artelydev/secure-publish","owner":"artelydev","description":"Secure publish of private packages","archived":false,"fork":false,"pushed_at":"2024-12-18T18:29:43.000Z","size":17,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-18T19:38:10.303Z","etag":null,"topics":["npm","package","private","private-package","private-registry","registry","security"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/secure-publish","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/artelydev.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-22T12:30:44.000Z","updated_at":"2022-10-20T20:54:31.000Z","dependencies_parsed_at":"2024-12-08T23:23:23.849Z","dependency_job_id":"162da666-5e1b-4c98-a83e-34af3ebfd5a8","html_url":"https://github.com/artelydev/secure-publish","commit_stats":{"total_commits":22,"total_committers":5,"mean_commits":4.4,"dds":0.5909090909090908,"last_synced_commit":"8ca5468172e0ea77a7e5a7ae19cd6c4a4a4c9b07"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artelydev%2Fsecure-publish","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artelydev%2Fsecure-publish/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artelydev%2Fsecure-publish/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artelydev%2Fsecure-publish/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/artelydev","download_url":"https://codeload.github.com/artelydev/secure-publish/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233981145,"owners_count":18760779,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["npm","package","private","private-package","private-registry","registry","security"],"created_at":"2024-11-14T23:12:18.379Z","updated_at":"2025-09-23T14:30:34.915Z","avatar_url":"https://github.com/artelydev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch2 align=\"center\"\u003e:no_entry: secure-publish :no_entry_sign:\u003c/h2\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://npmcharts.com/compare/secure-publish?minimal=true\"\u003e\n        \u003cimg src=\"https://img.shields.io/npm/dt/secure-publish.svg\" alt=\"Total downloads on npm.\" /\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    Private packages publishing made easy\n\u003c/p\u003e\n\n---\n\n[![NPM Badge](https://nodei.co/npm/secure-publish.png?downloads=true)](https://www.npmjs.com/package/secure-publish)\n\n## Motivation\n\n#### TL;DR\nTo prevent your private packages available publicly on `npmjs` or `yarnpkg`.\n\n---\n\nIf you are using `npm publish` for your private packages e.g. for publishing\nthem to a local npm registry or to your own private npm registry - at some point\nyou may end up with your package being available publicly on `npm` or `yarn` registry if\nsomething will go wrong.\n\nThis tool is just another safety catch for such situations, not allowing one\nto simply pass through without all the needed setup.\n\n## Installation\n\n```bash\n$ npm i -D secure-publish\n```\n\nAdd pre-publish script in `package.json`:\n```bash\n{\n  ...,\n  \"scripts\": {\n    \"prepublishOnly\": \"secure-publish\"\n  },\n  ...\n}\n```\n\nSet a private registry in `.npmrc`:\n\n```bash\nregistry=https://private.registry.com\n```\n\n## Scoped packages\n\nJust add the scope in your `package.json` and you're done:\n```bash\n{\n  \"name\": \"@private-scope/private-package\",\n  ...\n}\n```\n---\nIt is also **recommended** providing custom registry for scope in your `.npmrc` like this:\n\n```bash\n@private-scope:registry=https://private-scope.registry.com\n```\n\n## Usage\n\n\n```bash\n$ npm publish\n```\n\n---\n:dizzy:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartelydev%2Fsecure-publish","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartelydev%2Fsecure-publish","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartelydev%2Fsecure-publish/lists"}