Skip to content

fix: optimize build process for docsite#378

Open
davidmyriel wants to merge 2 commits intomainfrom
myriel/build-fixes
Open

fix: optimize build process for docsite#378
davidmyriel wants to merge 2 commits intomainfrom
myriel/build-fixes

Conversation

@davidmyriel
Copy link
Copy Markdown
Contributor

Here is what I did to the files

.github/workflows/test.yaml — rewritten:

  • Upgraded actions/checkout from v2 to v4 and actions/setup-node from v3 to v4
  • Added cache: "npm" to setup-node so npm packages are cached between runs
  • Switched npm install to npm ci for faster, deterministic installs
  • Added actions/cache@v4 for the .docusaurus build cache directory
  • Split into two parallel jobs (lint and build) so formatting/linting runs concurrently with the Docusaurus build
  • Removed the no-op git submodule update step

docusaurus.config.js — removed the unused @akebifiky/remark-simple-plantuml require and plugin reference

package.json — uninstalled playwright (unused devDependency) and @akebifiky/remark-simple-plantuml (no PlantUML content in any blog post)

Build verified passing locally after all changes.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 8, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
blog Ready Ready Preview, Comment Apr 8, 2026 1:20pm
blog-redirect Ready Ready Preview, Comment Apr 8, 2026 1:20pm

Request Review

node-version: "22"
cache: "npm"

- name: Restore Docusaurus cache
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this going to reuse the cache artifacts across different branches? If so, that may pollute the build of one branch with artifacts from another branch

- name: ESLint
run: npx eslint .

build:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Build has to be dependent on lint passing which is why it was setup as a sequential step

@ovaistariq
Copy link
Copy Markdown
Contributor

This needs to be rebased as I have pushed some changes to main. You just need to keep the split of lint and build jobs now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants