Publish one package to every registry.
releaser packs your package once, checks every registry before it uploads anything, and publishes to npm, GitHub Packages, JSR, crates.io, PyPI and container registries from one command.
Read the quick start
bun add -g @kjanat/releaser@kjanat/releaser1.2.0
- registry.npmjs.org
- trusted publishing
- npm.pkg.github.com
- GITHUB_TOKEN
$ releaser publish✔ Configuration loaded✔ Detected ecosystem: npm ✓ Successfully published! Package: @kjanat/releaser@1.2.0 Registry: https://registry.npmjs.org, https://npm.pkg.github.com
Checked before anything uploads
A release either reaches every registry or stops with a message that says what to fix.
- Every token is thereA registry whose token variable is empty stops the release before the first upload.
- Trusted publishing can sign inA registry set to trusted publishing needs an OIDC token from GitHub Actions, GitLab CI or CircleCI.
- New packages get their first versionA bootstrap token publishes the first version; every release after that uses trusted publishing.
- Reruns finish the jobA registry that already has the version is skipped, so a rerun only publishes where the last run failed.
- Names match their scopeA package outside a registry’s scope is refused before anything leaves your machine.
Where it publishes
| Registry | Built with | Signs in with |
|---|---|---|
| npm | Packed by bun, npm, pnpm, yarn or deno | Trusted publishing or a token |
| GitHub Packages | The same npm tarball | GITHUB_TOKEN |
| JSR | deno publish | GitHub Actions OIDC or a token |
| crates.io | cargo publish | Token from crates-io-auth-action |
| PyPI | python -m build, twine upload | twine credentials |
| Container registries | docker build, tag and push | Registry token |
| Go modules | A pushed git tag | Your git remote |
Get started
Install releaser
It runs on Bun.
bun add -g @kjanat/releaserList your registries
Put a .release.yaml next to your package.
version: 1global:versionScheme: semanticcommitConvention: conventional-commitsecosystems:npm:enabled: truepackageManager: bunregistries:- name: npmurl: https://registry.npmjs.orgtrustedPublishing: truebootstrapAuthEnv: NPM_BOOTSTRAP_TOKEN- name: githuburl: https://npm.pkg.github.comauthEnv: GITHUB_TOKENPublish
Try it with --dry-run first.
releaser publish