pnpm stage

게시할 패키지를 npm의 스테이징 게시 워크플로로 스테이징합니다. Staged versions are not resolved by pnpm install until they are explicitly approved, letting you defer proof-of-presence (2FA) to a later point in time. This is useful for verifying release artifacts, smoke-testing CI, or coordinating multi-package releases.

pnpm stage <subcommand> [options]

하위 명령#

publish#

게시할 패키지를 스테이징합니다.

pnpm stage publish [<tarball>|<dir>] [--tag <tag>] [--access <public|restricted>] [options]

Accepts the same arguments as pnpm publish, including --ignore-scripts, --force, --batch, and the git checks, but uploads the tarball to staging instead of promoting it to the live registry. 결과로 생성된 stage id가 출력되며 다른 하위 명령에서 사용할 수 있습니다.

워크스페이스의 게시 가능한 모든 패키지를 스테이징하려면 --recursive(또는 -r)을 사용하세요.

list#

스테이징된 모든 패키지 버전을 나열하거나, 특정 패키지의 스테이징된 버전을 나열합니다.

pnpm stage list [<package-name>]

The argument is a package name. A version specifier other than * is rejected.

view#

특정 스테이징 버전의 세부 정보를 표시합니다.

pnpm stage view <stage-id>

approve#

스테이징된 버전을 승인하여, 라이브 레지스트리에 반영합니다. 일회용 비밀번호가 사용되는 단계입니다.

pnpm stage approve [<stage-id>...] [--otp <otp>]

Since v12.0.0, several stage ids may be approved at once, and running approve with none opens an interactive picker over the staged versions:

pnpm stage approve                     # pick interactively
pnpm stage approve <stage-id> <stage-id>

The whole batch is approved with a single one-time password; pnpm asks for a new one only once the registry stops accepting the current one.

Inside a workspace the selected packages are approved in dependency order, and a package whose workspace dependency could not be approved is skipped rather than published against a dependency that never reached the registry.

reject#

스테이징된 버전을 거부하고 스테이징에서 제거합니다.

pnpm stage reject <stage-id> [--otp <otp>]

download#

검사를 위해 스테이징된 버전의 tarball을 다운로드합니다.

pnpm stage download <stage-id>

The tarball is written to the current directory as <name>-<version>-<stage-id>.tgz, and its summary is printed. In a scoped name, the scope's @ is dropped and / becomes -.

A stage id is a hyphenated UUID, such as 123e4567-e89b-12d3-a456-426614174000.

옵션#

--registry <url>#

사용할 npm 레지스트리의 기본 URL입니다. When you manage staged versions from a package directory, pnpm uses the package's publish registry, including its scoped registry configuration. When stage list names a different package, pnpm selects the registry for that name. To use a one-time password with a registry the package selects other than the default, specify --registry.

--tag <tag>#

스테이징된 패키지를 지정한 dist-tag로 등록합니다. 기본값은 latest입니다.

--access <public|restricted>#

스테이징된 패키지를 공개할지 제한할지 레지스트리에 알려줍니다.

--json#

JSON 형식으로 정보를 표시합니다. list, view, publish, download에 적용됩니다.

--dry-run#

레지스트리 업로드를 제외하고 stage publish가 수행하는 모든 작업을 수행합니다.

--otp <otp>#

approve 및 reject에 사용할 일회용 비밀번호입니다.

--recursive, -r#

워크스페이스의 게시 가능한 모든 패키지를 스테이징합니다.

--filter <package_selector>#

필터링에 대해 자세히 알아보세요.