Skip to content

Commit e3c3331

Browse files
committed
debug: add verbose logging to npm publish
1 parent f384f55 commit e3c3331

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ jobs:
5454
git config user.name "github-actions[bot]"
5555
git config user.email "github-actions[bot]@users.noreply.github.com"
5656
57+
- name: Debug auth
58+
run: |
59+
echo "npm version: $(npm --version)"
60+
echo "node version: $(node --version)"
61+
npm whoami 2>&1 || echo "whoami failed"
62+
cat ~/.npmrc | sed 's/npm_[a-zA-Z0-9]*/npm_REDACTED/g'
63+
5764
- name: Bump & publish core
5865
if: inputs.package == 'core' || inputs.package == 'both'
5966
working-directory: packages/core
@@ -64,11 +71,18 @@ jobs:
6471
6572
bun run build
6673
74+
echo "📋 Package contents:"
75+
npm pack --dry-run 2>&1 || true
76+
6777
if [ "${{ inputs.dry-run }}" = "true" ]; then
6878
echo "🏜️ Dry run — would publish @pascal-app/core@$VERSION"
6979
npm publish --dry-run --access public
7080
else
71-
npm publish --access public
81+
npm publish --access public --loglevel verbose 2>&1 || {
82+
echo "❌ Publish failed, dumping debug log:"
83+
cat ~/.npm/_logs/*-debug-0.log 2>/dev/null | tail -50
84+
exit 1
85+
}
7286
echo "📦 Published @pascal-app/core@$VERSION"
7387
fi
7488

0 commit comments

Comments
 (0)