Skip to content

Commit cc595f0

Browse files
committed
fix: add ts type-check in spa folder to the release scripts
1 parent dfba81d commit cc595f0

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

live-demo/deploy/.woodpecker.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ steps:
2525
- cd adminforth
2626
- pnpm install
2727
- /bin/bash ../live-demo/deploy/buildRelease.sh
28+
- cd ./spa
29+
- npm ci
30+
- /bin/bash ../../live-demo/deploy/typeCheckSPA.sh
31+
- cd ..
2832
- pnpm audit --audit-level=critical
2933
- pnpm exec semantic-release
3034

live-demo/deploy/typeCheckSPA.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
pnpm type-check 2>&1
4+
type_check_status=$?
5+
6+
if [ $type_check_status -ne 0 ]; then
7+
echo "Type check failed. Exiting with status code $type_check_status"
8+
exit $type_check_status
9+
fi

0 commit comments

Comments
 (0)