From c417c3058b6d88d619af9884b79590eb8af2e83a Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 12 Mar 2025 14:59:45 +0300 Subject: [PATCH] fix: Improve error handling in GitHub Actions build process (#39688) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description Refactor release client build step so that it does not fail on warnings. ## Automation /ok-to-test tags="@tag.Sanity" ### :mag: Cypress test results > [!IMPORTANT] > 🟣 🟣 🟣 Your tests are running. > Tests running at: > Commit: 1e7aeaeb24f4de71bab0c70bce385904f93fee82 > Workflow: `PR Automation test suite` > Tags: `@tag.Sanity` > Spec: `` >
Wed, 12 Mar 2025 11:30:35 UTC ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [ ] No ## Summary by CodeRabbit - **Chores** - Enhanced the build process to better capture and handle errors, ensuring that any issues during the build are flagged promptly. --- .github/workflows/github-release.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/github-release.yml b/.github/workflows/github-release.yml index 21ce9d7122..cc86f330b4 100644 --- a/.github/workflows/github-release.yml +++ b/.github/workflows/github-release.yml @@ -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