Skip to content

Release management capabilities (like nx release) with dry-run, skip-publish, etc. #1169

Open

Description

@alvarosabu

Feature Request

Problem

Monorepos need robust release management. Currently tools like nx release provide a comprehensive release workflow that handles versioning, changelog generation, and publishing in a single command with fine-grained control. Vite+ as a unified toolchain could benefit from similar capabilities.

Proposed Solution

A vp release command (or similar) that supports:

Core features

  • Version bumping — automatic version detection from conventional commits (patch/minor/major)
  • Changelog generation — per-package and root-level changelogs from commit history
  • Publishing — coordinated npm publish across workspace packages in dependency order

Flags / Options

  • --dry-run — preview what would happen without making changes
  • --skip-publish — version bump + changelog only, no npm publish
  • --first-release — handle initial release edge cases
  • --preid <tag> — prerelease identifiers (alpha, beta, rc)
  • --projects <pattern> — release specific packages only
  • --git-tag / --no-git-tag — control git tag creation
  • --git-commit / --no-git-commit — control automatic commit creation

Nx release reference

# Preview release
nx release --dry-run

# Version + changelog only
nx release --skip-publish

# Full release
nx release

# Specific packages
nx release --projects=@scope/pkg-a,@scope/pkg-b

Why

  • Release management is one of the most painful parts of monorepo maintenance
  • Having it built into the unified toolchain avoids needing separate tools (changesets, semantic-release, nx release, etc.)
  • --dry-run is essential for CI pipelines and confidence before publishing
  • Fits naturally with Vite+'s vision of managing the full development lifecycle

Activity

  1. assigned and unassigned on Mar 27, 2026
  2. cpojer commented on Mar 27, 2026

    @cpojer
    Member

    @ubugeeei is potentially working on an RFC. We'd like the community to provide input on the design of this feature.

  3. ubugeeei commented on Mar 28, 2026

    @ubugeeei
    Collaborator

    I'll try this ;D

  4. Marco-Pagani commented on Jun 24, 2026

    @Marco-Pagani

    Thank you all for working on this feature, it's something I'm very much looking forward to for monorepo management.
    I read through the RFC and relevant docs from @ubugeeei's PR #1180: Usage Guide and CI Action Template. This is largely how I would expect the command to work, I'm raising a few questions to reason beyond my own use case.

    On versioning, I understood from the docs that each package gets updated independently but there are several mentions of lockstep releases. It sounds like vp release publishes all packages unless scoped to a named set, so what happens if those packages aren't all on the same version initially? Will each package be bumped to the next major/minor/patch version, or will they be brought into alignment? I think that lockstep releases should be configurable such that they're enforced if enabled, but mostly I'm asking for clarity on what assumptions are made for the initial release.

    Related to versioning, I'm curious if release type mapping will be supported in the future. I see that it's hard-coded now and that makes sense, but some teams like to use custom commit types or change the semantic correspondence so it would be good to consider how that might fit into the config in the future. It could be as simple as an override map, e.g. { 'refactor': MINOR, 'customThing': PATCH }

    The example CI workflow is really helpful in explaining how this is meant to be used in production. One thing was unclear though, should it be possible to publish a pre-release package from a feature branch, or is it assumed that code will be merged to the default branch before publish? I assume the latter, but this is another place where the docs might be ambiguous.

    Lastly, on the open questions in the RFC the only one I have a strong opinion on is SHA pinning of actions. Given the number of supply chain attacks we've seen recently on npm my gut feeling is that those actions should be pinned for security. If you include version comments dependabot can still bump them as well. Changelog customization isn't something that feels necessary out of the gate, since the template already uses --generate-notes, allowing an optional summary appended to the top would cover most needs.

    Thank you again for the hard work here, looking forward to trying it out soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions