From 16ea824f71c122a8576a0236023a0ef0f09f196a Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Fri, 5 May 2023 12:11:33 +0200 Subject: [PATCH] Fixed building Admin in development mode for browser tests - I switched over `build` to run in production mode because we now do `lerna run build` during the release process, but this was bundling development assets - this adds `build:dev` and switches the browser test to use that, so they should use the development assets moving forwards --- .github/workflows/browser-tests.yml | 2 +- ghost/admin/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/browser-tests.yml b/.github/workflows/browser-tests.yml index 8dd9bd7608..3964dd0b44 100644 --- a/.github/workflows/browser-tests.yml +++ b/.github/workflows/browser-tests.yml @@ -63,7 +63,7 @@ jobs: - name: Build Admin if: env.ENVIRONMENT == 'browser-tests-local' working-directory: ghost/admin - run: yarn build --silent + run: yarn build:dev - name: Run Playwright tests on a remote site if: env.ENVIRONMENT == 'browser-tests-staging' diff --git a/ghost/admin/package.json b/ghost/admin/package.json index 9d4d5f59e0..90d8412624 100644 --- a/ghost/admin/package.json +++ b/ghost/admin/package.json @@ -18,7 +18,7 @@ "scripts": { "start": "ember serve", "build": "ember build --environment=production --silent", - "build:prod": "yarn build", + "build:dev": "yarn build --environment=development", "test:unit": "true", "test": "ember exam --split 2 --parallel", "lint:js": "eslint . --cache",