Skip to main content

GitHub action to test build of Docusaurus

· One min read
Simon Painter
Cloud Network Architect

I have a lingering fear that I'll break my site due to the somewhat precise nature of Docusaurus. It's compounded by my decision to open the site up for others to submit pull requests; while I run live rendering during updates I can't guarantee others will. I have added a simple action on top of the existing one which is triggered when a pull request is created. The action builds the site and captures the output from npm run build --verbose and adds it as a comment to the pull request.

Link to the action here.