From a6811bd722a9aeea7e95a065cd9d3ff2f8225577 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yusuf=20To=CC=88r?= <3296904+yusuftor@users.noreply.github.com> Date: Tue, 3 Nov 2026 14:35:59 +0100 Subject: [PATCH] Log npm publish verbosely and allow manual publish runs Trusted publishing failed with ENEEDAUTH and npm only explains why in verbose logs. Manual runs let a publish be retried without a commit. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/build-test-publish-superscript-npm.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-test-publish-superscript-npm.yml b/.github/workflows/build-test-publish-superscript-npm.yml index 00ebdd7..b8a4427 100644 --- a/.github/workflows/build-test-publish-superscript-npm.yml +++ b/.github/workflows/build-test-publish-superscript-npm.yml @@ -133,7 +133,7 @@ jobs: # Version management and publishing - name: Check for version changes - if: github.event_name == 'push' && github.ref == 'refs/heads/master' + if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master' id: version_check run: | cd wasm @@ -159,17 +159,17 @@ jobs: fi - name: Publish to NPM - if: github.event_name == 'push' && github.ref == 'refs/heads/master' + if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master' run: | # Trusted publishing needs npm 11.5.1 or later. npm install -g npm@^11.5.1 cd wasm # Try a normal publish first; if it fails (e.g. first-time publish of a # scoped package), retry with --access public. - if npm publish; then + if npm publish --loglevel verbose; then echo "Published successfully with 'npm publish'" else echo "'npm publish' failed, retrying with --access public..." - npm publish --access public + npm publish --access public --loglevel verbose fi \ No newline at end of file