From 6e7a75f47631e5999e296c2d69ca02a5601db19f Mon Sep 17 00:00:00 2001 From: Anton Pascal Date: Wed, 18 Feb 2026 21:41:54 +0000 Subject: [PATCH] fix: try Node 20 + capture debug log on failure --- .github/workflows/release.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 99a196a7..46b64d25 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,7 +41,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: 22 + node-version: 20 registry-url: "https://registry.npmjs.org" - name: Install dependencies @@ -66,7 +66,11 @@ jobs: echo "🏜️ Dry run — would publish @pascal-app/core@$VERSION" npm publish --dry-run --access public else - npm publish --access public --provenance + npm publish --access public --provenance 2>&1 || { + echo "❌ Publish failed. Debug log:" + cat ~/.npm/_logs/*-debug-0.log 2>/dev/null | tail -80 + exit 1 + } echo "📦 Published @pascal-app/core@$VERSION" fi