Skip to main content

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

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. Build releaser

    Run these commands from a source checkout with Bun installed.

    bun install && bun run build
  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

    From the package directory, use the path to the executable you built.

    /path/to/releaser/release publish --dry-run

Read the documentation or browse the source on GitHub.