Release packages across ecosystems.
Preview and publish packages using one configuration file. Coordinate npm, Cargo, and Python workspace releases in dependency order.
@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
Plan and verify releases
The checks and results depend on the selected ecosystem and registry.
- Preview your releaseA dry run shows what would publish without uploading. Package validation can still run local scripts.
- Pick a registrySelect a named registry and use the credentials required by its adapter.
- Publish workspaces in orderEach package waits for its selected prerequisites. A failed prerequisite blocks its dependents.
- Verify the resultSupported adapters check the published version or artifact at the selected destination.
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
Build releaser
Run these commands from a source checkout with Bun installed.
bun install && bun run buildList 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
From the package directory, use the path to the executable you built.
/path/to/releaser/release publish --dry-run