npm-publish icon indicating copy to clipboard operation
npm-publish copied to clipboard

Any way to don't publish if not already published?

Open ftzi opened this issue 3 years ago • 2 comments

Hi! I've been using it for a while and I appreciate your work ;)

I want to include it on my boilerplates generator, but I would like that it would only run publish if the package is already published, to avoid accidental publishing due to some specific reasons. I know right that it's possible to use another branch to avoid the publishing, but I want to know if it's possible.

Thanks!

ftzi avatar Feb 04 '22 04:02 ftzi

Uploading Screenshot_20220205-200934_B29.jpg…

Vanthang1995 avatar Feb 05 '22 21:02 Vanthang1995

11

Vanthang1995 avatar Feb 05 '22 21:02 Vanthang1995

Thanks for the request! I don't think it's worth adding this feature to this action. If you would like to prevent a package from being published until it's ready, you should set "private": true in package.json

mcous avatar Apr 07 '23 15:04 mcous