sindresorhus / np

A better `npm publish`
MIT License
7.56k stars 299 forks source link

Fix np with pnpm and --any-branch or --branch #745

Closed karlhorky closed 5 months ago

karlhorky commented 6 months ago

Fixes the hanging of the Publishing package step caused by pnpm checking Git branches and waiting for stdin (this message is not visible, np just hangs on Publishing package on a non-main/master branch):

pnpm publish
? You're on branch "renovate/eslint-monorepo" but your "publish-branch" is set to "master|main". Do you want to continue? (y/N) › false

This disables the Git checks via the --no-git-checks option

cc @mmkal

ghost commented 5 months ago

@sindresorhus Sir, may you merge this hotfix please? :)