npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, πŸ‘‹, I’m Ryan HefnerΒ  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you πŸ™

Β© 2026 – Pkg Stats / Ryan Hefner

@lidofinance/multi-semantic-release

v1.0.2

Published

<h1 align="center">πŸ—οΈ multi-semantic-release</h1>

Readme


Contents

Features

  • πŸ—οΈ Monorepo support β€” automatically discovers all workspace packages and releases them.
  • πŸ”„ Topological order β€” packages are released respecting their dependency graph.
  • πŸ“¦ Dependency cascade β€” when a package is released, its local dependents are bumped and re-released according to a configurable rule.
  • 🏷️ Tag-aware prerelease versioning β€” picks the next prerelease above existing git tags to avoid collisions.
  • πŸ”— Workspace protocol β€” resolves workspace: ranges (Yarn Berry / pnpm) to concrete versions on publish.
  • πŸ§ͺ Dry-run mode β€” preview what would be released without changing anything.
  • πŸ”• Logging control β€” --silent and --debug.

Requirements

  • Node.js >= 24.10.0 (matches semantic-release 25's engine support).
  • A Git repository using Conventional Commits.
  • A workspace-based monorepo (Yarn / npm / pnpm workspaces).

Installation

# Yarn
yarn add -D @lidofinance/multi-semantic-release

# npm
npm install --save-dev @lidofinance/multi-semantic-release

# or globally
npm install -g @lidofinance/multi-semantic-release

Usage

Run from the monorepo root:

npx multi-semantic-release

Typically you run it in CI on a release branch, exactly like semantic-release β€” it reads each package's semantic-release configuration and runs the full lifecycle per package.

Examples

# Preview what would be released
multi-semantic-release --dry-run

# Verbose diagnostics
multi-semantic-release --debug

# Dependency bumping rules
multi-semantic-release --deps.bump override --deps.release patch --deps.prefix "^"

# Ignore packages and use a custom tag format
multi-semantic-release --ignore-packages @internal/test-utils --tag-format "v${version}"

CLI options

| Option | Description | Default | | ------------------------------------- | --------------------------------------------------------------------------------------------------------- | -------------------- | | -d, --dry-run | Run without publishing or pushing anything. | false | | -s, --silent | Do not print configuration information. | false | | --debug | Output debug logging. | false | | --sequential-init | Load/initialize packages one-by-one instead of in parallel (avoids concurrent init collisions). | false | | --sequential-prepare | Accepted for compatibility β€” releases always run sequentially per package.ΒΉ | true | | --first-parent | Apply commit filtering to the current branch only. | false | | --deps.bump <rule> | How to rewrite a changed dependency's version: override, satisfy, inherit. | override | | --deps.release <type> | Release type for a dependent when one of its local deps changes: patch, minor, major, inherit. | patch | | --deps.prefix <prefix> | Prefix for the rewritten dep version when --deps.bump=override: ^, ~, or empty. | "" | | --deps.pullTagsForPrerelease [bool] | Consider existing git tags when computing a dependency's next prerelease version (avoids collisions). | true | | --ignore-packages <pkgs...> | Packages to exclude from the release. | [] | | --ignore-private | Exclude "private": true packages (pass --no-ignore-private to include them). | true | | --tag-format <format> | Git tag template. Supports ${name} and ${version}. | ${name}@${version} |

ΒΉ Packages are released sequentially in topological order, so --sequential-prepare currently has no effect; it is kept for CLI compatibility.

Configuration

There are two independent configs.

1. multi-semantic-release config

Loaded via cosmiconfig under the name multi-release:

  • package.json β†’ "multi-release" field
  • .multi-releaserc / .multi-releaserc.{json,yaml,yml,js,cjs}
  • multi-release.config.{js,cjs}
// package.json
{
  "multi-release": {
    "tagFormat": "${name}@${version}",
    "ignorePrivate": true,
    "ignorePackages": ["@internal/test-utils"],
    "deps": {
      "bump": "override",
      "release": "patch",
      "prefix": "^",
      "pullTagsForPrerelease": true,
    },
  },
}

CLI flags override config values.

2. semantic-release config (per package / root)

Standard semantic-release config (release key in package.json, .releaserc, etc.) β€” branches, channels and plugins are resolved the usual way for each package:

{
  "release": {
    "branches": [
      "main",
      { "name": "develop", "channel": "alpha", "prerelease": "alpha" },
    ],
  },
}

Prerelease channels & tag-aware versioning

On a prerelease branch (e.g. develop β†’ alpha), each package is versioned like 1.4.0-alpha.N.

When a dependency is bumped inside a dependent's manifest, the next prerelease version is computed tag-aware: it takes the highest of "bump from the last release" and "bump from the highest existing prerelease git tag". This prevents version collisions when prerelease tags run ahead of the last recorded release (parallel prerelease lines, manual re-tagging, multiple channels).

Disable with --deps.pullTagsForPrerelease=false (or deps.pullTagsForPrerelease: false in config) to always bump from the last release only.

Keep the prerelease branch in sync with the release branch. semantic-release computes a package's own next version only from tags reachable on the current branch (git tag --merged). If main has a stable release the prerelease branch hasn't merged, the next prerelease would regress below that stable version. Merge main into develop before an alpha release (the standard semantic-release pre-releases workflow).

Workspace protocol

Cross-package dependencies declared with the workspace protocol are resolved to concrete versions on publish:

| Declared | Published (with --deps.bump=override) | | ------------- | --------------------------------------- | | workspace:^ | ^<new version> | | workspace:~ | ~<new version> | | workspace:* | <new version> |

Programmatic API

import { multiSemanticRelease } from '@lidofinance/multi-semantic-release';

// Returns the workspace packages in topological order, with release info populated.
const packages = await multiSemanticRelease({
  cliOptions: {
    dryRun: true,
    deps: { bump: 'override', release: 'patch', prefix: '^' },
  },
});

The package is ESM-only ("type": "module").

How it works

  1. Discover β€” find all workspace packages and build their dependency graph (@semrel-extra/topo).
  2. Queue β€” sort packages topologically so dependencies are released before dependents.
  3. Analyze β€” for each package, filter commits to its directory and determine the release type from Conventional Commits.
  4. Cascade β€” if a package's local dependency changed, bump the dependency range in its manifest and give it a release per --deps.release.
  5. Release β€” run the semantic-release lifecycle per package: notes β†’ tag β†’ publish β†’ GitHub release.

Development

corepack enable     # activates the pinned Yarn Berry (packageManager field)
yarn install        # install dependencies (Yarn)
yarn dev            # run from source (tsx)
yarn build          # compile to dist/
yarn lint           # eslint
yarn format         # prettier --write
yarn types          # tsc --noEmit
yarn test           # vitest
yarn test:coverage  # vitest with coverage

License

MIT