Skip to content

Commit 69229d7

Browse files
committed
test
1 parent c932802 commit 69229d7

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff 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')

0 commit comments

Comments
 (0)