Skip to content

Failure to Publish Specific Version since v9.0.0 #748

Open
@tianfeng92

Description

@tianfeng92

Failed to publish specific version.

Description

Publishing a specific version with np fails starting from version v9.0.0. v8.0.4 is the last workable version.

Error message:

✖ Error: Increment 0.178.0 should be one of patch, minor, major, prepatch, preminor, premajor, or prerelease.
    at new Version (file:///Users/tianfeng/code/node-saucectl/node_modules/np/source/version.js:70:11)
    at ui (file:///Users/tianfeng/code/node-saucectl/node_modules/np/source/ui.js:147:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async file:///Users/tianfeng/code/node-saucectl/node_modules/np/source/cli-implementation.js:134:18

Steps to reproduce

  1. Install the latest version of np.
  2. Attempt to publish a version using the command npx np 0.178.0.

Expected behavior

The command should successfully publish the specified version without errors.

Environment

np - from v9.0.0 to v10.0.5
Node.js - v22.2.0
npm - 10.7.0
Git - git version 2.39.3 (Apple Git-145)
OS - macOS 14.0

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