Skip to main content

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 startbun 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

RegistryBuilt withSigns in with
npmPacked by bun, npm, pnpm, yarn or denoTrusted publishing or a token
GitHub PackagesThe same npm tarballGITHUB_TOKEN
JSRdeno publishGitHub Actions OIDC or a token
crates.iocargo publishToken from crates-io-auth-action
PyPIpython -m build, twine uploadtwine credentials
Container registriesdocker build, tag and pushRegistry token
Go modulesA pushed git tagYour git remote

Get started

  1. Install releaser

    It runs on Bun.

    bun add -g @kjanat/releaser
  2. List your registries

    Put a .release.yaml next to your package.

    version: 1
    global:
    versionScheme: semantic
    commitConvention: conventional-commits
    ecosystems:
    npm:
    enabled: true
    packageManager: bun
    registries:
    - name: npm
    url: https://registry.npmjs.org
    trustedPublishing: true
    bootstrapAuthEnv: NPM_BOOTSTRAP_TOKEN
    - name: github
    url: https://npm.pkg.github.com
    authEnv: GITHUB_TOKEN
  3. Publish

    Try it with --dry-run first.

    releaser publish

Read the documentation or browse the source on GitHub.