0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

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
This commit is contained in:
Daniel Lockyer 2023-05-05 12:11:33 +02:00
parent 4207c9d0d1
commit 16ea824f71
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -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'

View file

@ -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",