Skip to content

Commit bdefeea

Browse files
committed
ci: emit npm install error as github annotations
1 parent efc3d5a commit bdefeea

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,9 @@ jobs:
3535
shell: bash
3636
run: |
3737
npm install --no-audit > npm-install.log 2>&1 || {
38-
echo "## NPM Install Failure Output (${{ matrix.os }} - Node ${{ matrix.node-version }})" >> $GITHUB_STEP_SUMMARY
39-
echo '```text' >> $GITHUB_STEP_SUMMARY
40-
tail -n 120 npm-install.log >> $GITHUB_STEP_SUMMARY
41-
echo '```' >> $GITHUB_STEP_SUMMARY
42-
cat npm-install.log
38+
while IFS= read -r line; do
39+
echo "::error::$line"
40+
done < <(tail -n 25 npm-install.log)
4341
exit 1
4442
}
4543

0 commit comments

Comments
 (0)