Skip to content

No commit created, no tag, no push #766

Open
@amirping

Description

@amirping

np silently fails to create commits, tags, or push changes

Description

np silently fails to create commits, tags, or push changes in local development and CI environments. The command appears to complete successfully (with exit code 0) and reports that the version was published, but no actual git operations take place.

Steps to reproduce

  1. Create a package.json with a script using np with the following flags:
    "app-release": "cross-env SKIP_BRANCH_PROTECTION=true np --no-publish --no-cleanup --no-release-draft --no-tests"
  2. Run the script either locally or in a CI environment:
    pnpm app-release patch --tag-prefix "ca-app-" --branch develop
  3. Observe that despite the command completing successfully with the message "ca-app x.x.x published 🎉", no git commits are created, no tags are pushed, and no changes are pushed to the remote repository.

Expected behavior

When running np with the specified flags, it should:

  • Bump the version in package.json
  • Create a commit with the version change
  • Create a tag with the specified prefix
  • Push the commit and tag to the remote repository (develop branch)

Environment

np - 10.0.7
Node.js - 22.14.0
npm - 10.9.2
pnpm - 9.12.3
Git - 2.39.5
OS - macOS 15.3.1 / (ubuntu-latest on CI GH)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions