fix: Improve error handling in GitHub Actions build process (#39688)

## Description
Refactor release client build step so that it does not fail on warnings.


## Automation

/ok-to-test tags="@tag.Sanity"

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!IMPORTANT]
> 🟣 🟣 🟣 Your tests are running.
> Tests running at:
<https://github.com/appsmithorg/appsmith/actions/runs/13810276720>
> Commit: 1e7aeaeb24f4de71bab0c70bce385904f93fee82
> Workflow: `PR Automation test suite`
> Tags: `@tag.Sanity`
> Spec: ``
> <hr>Wed, 12 Mar 2025 11:30:35 UTC
<!-- end of auto-generated comment: Cypress test results  -->


## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [ ] No


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Chores**
- Enhanced the build process to better capture and handle errors,
ensuring that any issues during the build are flagged promptly.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Alex 2025-03-12 14:59:45 +03:00 committed by GitHub
parent 13faf4829c
commit c417c3058b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -83,7 +83,12 @@ jobs:
REACT_APP_INTERCOM_APP_ID: "${{ secrets.APPSMITH_INTERCOM_ID }}"
REACT_APP_VERSION_EDITION: "Community"
run: |
yarn build
yarn build || EXIT_CODE=$?
if [ -n "$EXIT_CODE" ] && [ "$EXIT_CODE" -gt 1 ]; then
exit $EXIT_CODE
fi
ls -l build
- name: Pack the client build directory