Skip to content

Commit

Permalink
chore(ci/pr-test): split rendering index.html from building `index.…
Browse files Browse the repository at this point in the history
…json`
  • Loading branch information
yin1999 committed Nov 30, 2024
1 parent cca56ae commit 0e29f8d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/pr-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,11 @@ jobs:
# Don't use `yarn build` (from mdn/content) because that one hardcodes
# the BUILD_OUT_ROOT and CONTENT_ROOT env vars.
node node_modules/@mdn/yari/build/cli.js ${GIT_DIFF_CONTENT}
CLI_DIR='node_modules/@mdn/yari/build'
node "${CLI_DIR}/cli.js -n ${GIT_DIFF_CONTENT}
# render all the pages
node "${CLI_DIR}/ssr-cli.js"
echo "Disk usage size of build"
du -sh ${BUILD_OUT_ROOT}
Expand Down

0 comments on commit 0e29f8d

Please sign in to comment.