Skip to content

Commit b44bb28

Browse files
committed
failure logs
1 parent ed9c62e commit b44bb28

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/pr.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,15 @@ jobs:
7474
- run: yarn lint:ci
7575

7676
- run: yarn test --verbose
77+
id: test
78+
79+
- name: Upload npm logs on failure
80+
if: failure() && steps.test.outcome == 'failure'
81+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
82+
with:
83+
name: npm-logs-${{ matrix.os }}-node${{ matrix.node }}-npm${{ matrix.npm }}
84+
path: ${{ env.HOME || env.USERPROFILE }}/.npm/_logs
85+
retention-days: 3
7786

7887
# The docs have a separate installation using Node 22 due to needing newer dependencies
7988
docs:

0 commit comments

Comments
 (0)