File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,11 @@ jobs:
2828 key : static
2929
3030 - run : npm ci
31+
3132 - run : npm run check
3233 - run : npm run format:core:check
3334 # # TODO: content formatting checks
34- - run : npm run build
35+ - run : npm run build |& tee -a build.log
3536 env :
3637 NODE_OPTIONS : " --max-old-space-size=4192"
3738 RUN_LINK_CHECK : true
@@ -55,12 +56,10 @@ jobs:
5556 env :
5657 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5758 run : |
58- gh run view ${{ github.run_id }} --repo ${{ github.repository }} --log-failed > logs.txt
59-
60- ERRORS=$(cat logs.txt |
59+ ERRORS=$(cat build.log |
6160 cut -d$'\t' -f3 | # remove workflow/step columns
6261 cut -d' ' -f2-) # remove timestamp
63- sed -n '/\[.*error.*\]/I,$p') # select lines from '[...error...]' or 'npm err' (case-insensitive) to EOF
62+ sed -E - n '/\[.*error.*\]|npm err|\[vite\] Error /I,$p') # select lines from '[...error...]' or 'npm err' (case-insensitive) to EOF
6463
6564 if [ -n $ERRORS ]; then
6665 URL=$(gh run view ${{ github.run_id }} --json url --jq '.url')
You can’t perform that action at this time.
0 commit comments