Skip to content

Commit e9e4223

Browse files
committed
move build to buildRelease.sh
1 parent f7e9ac3 commit e9e4223

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

live-demo/deploy/.woodpecker.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ steps:
1616
commands:
1717
- cd adminforth
1818
- npm clean-install
19-
# - npm run build 2>&1 | tee build.log; [ $${PIPESTATUS[0]} -ne 0 ] && exit $${PIPESTATUS[0]}
20-
- npm run build
19+
- /bin/sh buildRelease.sh
2120
- npm audit signatures
2221
- npx semantic-release
2322
secrets:

live-demo/deploy/buildRelease.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
# write npm run output both to console and to build.log
3+
npm run build 2>&1 | tee build.log;
4+
5+
# if exist status from the npm run build is not 0
6+
# then exit with the status code from the npm run build
7+
if [ ${PIPESTATUS[0]} -ne 0 ]; then
8+
exit ${PIPESTATUS[0]}
9+
fi

0 commit comments

Comments
 (0)