From 111e6778c703a923044274949cedcb6412fe2b3b Mon Sep 17 00:00:00 2001 From: darkobas Date: Mon, 9 Nov 2026 18:07:44 +0100 Subject: [PATCH] ci: use npm stage publish (staged publishing) CI stages the version; a package owner approves it on npmjs.com with 2FA. --- .github/workflows/publish_npmjs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish_npmjs.yml b/.github/workflows/publish_npmjs.yml index 00e40d5..a569b5f 100644 --- a/.github/workflows/publish_npmjs.yml +++ b/.github/workflows/publish_npmjs.yml @@ -43,4 +43,4 @@ jobs: # this way successfully. pnpm still does install/build above; only the # publish call changes. - name: Publish - run: npm publish --provenance --access public + run: npm install -g npm@latest && npm stage publish --provenance --access public