chore: always print npm debug logs

This commit is contained in:
Alex Verkhovsky 2026-03-10 02:18:08 -06:00
parent 2b3f186c77
commit 429c071de6
1 changed files with 20 additions and 0 deletions

View File

@ -169,6 +169,26 @@ jobs:
env:
NODE_AUTH_TOKEN: ""
- name: Print npm debug logs
if: always()
run: |
LOG_DIR="$HOME/.npm/_logs"
echo "npm log directory: $LOG_DIR"
ls -la "$LOG_DIR" || true
found=0
for file in "$LOG_DIR"/*-debug-0.log; do
[ -e "$file" ] || continue
found=1
echo "::group::npm-debug $(basename "$file")"
cat "$file"
echo "::endgroup::"
done
if [ "$found" -eq 0 ]; then
echo "No npm *-debug-0.log files found."
fi
- name: Push version commit and tag
if: github.event_name == 'workflow_dispatch' && inputs.channel == 'latest'
run: git push origin main --follow-tags