Skip to content

Commit

Permalink
ci: print error log files
Browse files Browse the repository at this point in the history
  • Loading branch information
alandefreitas committed Sep 25, 2024
1 parent ced94ed commit 0160ed5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,17 @@ jobs:
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
continue-on-error: true

- name: Print npm error log
if: failure()
run: |
# Find the latest npm debug log file and print its contents
LOG_FILE=$(ls -t /home/runner/.npm/_logs/*.log | head -n 1)
echo "Latest npm debug log file: $LOG_FILE"
cat $LOG_FILE
publish-github:
name: Publish Github Release
Expand Down

0 comments on commit 0160ed5

Please sign in to comment.