draftpkg
v0.2.0
Published
CLI tool for [Draftpkg](https://github.com/draftpkg/draftpkg) — a self-hosted drop-in replacement for CodeSandbox CI that automatically builds npm packages from pull requests and publishes them to a private registry.
Readme
draftpkg
CLI tool for Draftpkg — a self-hosted drop-in replacement for CodeSandbox CI that automatically builds npm packages from pull requests and publishes them to a private registry.
Usage
npx draftpkg setupThis deploys a Cloudflare Worker that serves as your private npm registry. It will:
- Create a KV namespace for metadata
- Create an R2 bucket for tarballs
- Deploy the Worker
- Generate an API key
Prerequisites: a Cloudflare account and Wrangler logged in (wrangler login).
What's next?
After setup, add the Draftpkg GitHub Action to your repositories. See the full documentation for details.
License
MIT
