Skip to content

Commit b266957

Browse files
add npm debug
1 parent 8337409 commit b266957

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,17 @@ jobs:
3535
GITHUB_TOKEN: ${{ secrets.ADOBE_BOT_GITHUB_TOKEN }}
3636
NPM_TOKEN: ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
3737

38+
- name: Print npm debug log if build fails
39+
if: failure()
40+
run: |
41+
if [ -f /home/runner/.npm/_logs/*.log ]; then
42+
echo "==== NPM DEBUG LOG ===="
43+
cat /home/runner/.npm/_logs/*.log
44+
echo "==== END NPM DEBUG LOG ===="
45+
else
46+
echo "No npm debug log found."
47+
fi
48+
3849
semantic-release:
3950
runs-on: ubuntu-latest
4051
needs: build

0 commit comments

Comments
 (0)