Skip to content

Commit 5589207

Browse files
authored
fix: avoid some command logs (#65)
1 parent 42bb9c5 commit 5589207

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/monitor-metrics.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- name: Monitor Metrics
4141
id: monitor
4242
run: |
43-
result=$(cd scripts && MONITOR=1 pnpm compare ${{ matrix.product }})
43+
result=$(cd scripts && MONITOR=1 node ./dist/compare.js ${{ matrix.product }})
4444
echo "$result"
4545
echo "diff-result=${result//$'\n'/'@@'}" >> $GITHUB_OUTPUT
4646
if [[ $result =~ "Threshold exceeded" ]]; then

.github/workflows/pr-bench.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
- id: print-results
7474
name: Print results
7575
run: |
76-
result=$(cd scripts && pnpm compare ${{ inputs.product }})
76+
result=$(cd scripts && node ./dist/compare.js ${{ inputs.product }})
7777
echo "$result"
7878
echo "diff-result=${result//$'\n'/'@@'}" >> $GITHUB_OUTPUT
7979
if [[ $result =~ "Threshold exceeded" ]]; then

scripts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"scripts": {
55
"start": "npm run build && node ./dist/main.js",
66
"start:pr": "npm run build && node ./dist/pr-bench.js",
7-
"compare": "node ./dist/compare.js",
7+
"compare": "npm run build && node ./dist/compare.js",
88
"dev": "tsc --watch",
99
"build": "rm -rf ./dist && tsc"
1010
},

0 commit comments

Comments
 (0)