From 1d6705ad0aa13b9289cd37571b5a404b9a71718f Mon Sep 17 00:00:00 2001 From: Jacob Logan Date: Wed, 28 Aug 2024 15:03:12 -0700 Subject: [PATCH] create an actions build that better represents a prod deployment --- .github/workflows/accessibility_scan.yml | 2 +- .github/workflows/check_for_console_errors.yml | 2 +- package.json | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/accessibility_scan.yml b/.github/workflows/accessibility_scan.yml index 933fd2f136f..0ce7856094d 100644 --- a/.github/workflows/accessibility_scan.yml +++ b/.github/workflows/accessibility_scan.yml @@ -19,7 +19,7 @@ jobs: - name: Install dependencies run: yarn - name: Build - run: yarn build + run: yarn build:actions env: NODE_OPTIONS: --max_old_space_size=4096 - name: Get changed/new pages to run accessibility tests on diff --git a/.github/workflows/check_for_console_errors.yml b/.github/workflows/check_for_console_errors.yml index 3615ac34632..bd6b943fe1b 100644 --- a/.github/workflows/check_for_console_errors.yml +++ b/.github/workflows/check_for_console_errors.yml @@ -20,7 +20,7 @@ jobs: - name: Install Dependencies run: yarn - name: Run Build - run: yarn build:release + run: yarn build:actions env: NODE_OPTIONS: --max_old_space_size=4096 - name: Run Server diff --git a/package.json b/package.json index 70d29dd6554..4e18789721e 100644 --- a/package.json +++ b/package.json @@ -113,6 +113,7 @@ "build": "next build", "postbuild": "node tasks/postBuildTasks.mjs", "build:release": "yarn build && next-image-export-optimizer --exportFolderPath client/www/next-build", + "build:actions": "BUILD_ENV=production yarn build:release", "next-build": "next build", "next-start": "next start", "prepare": "husky install",