-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docusaurus + /docs takes hours to build on Github actions #3676
Comments
I'm attaching the build step log: |
Hi Please including a npm/yarn lockfile and upgrade to latest docusaurus version. We'll see if this happens again on latest version, and with a more deterministic build. Also worth trying to see if the same problem happens on Netlify, or if you increase GH actions memory (if possible?) |
@slorber Thank you! I updated |
Great 😜 |
🐛 Bug Report
Docusaurus app, when run
npm run build
and/ornpm run deploy
works locally, but on github actions it takes hours; and fails anyway (Github terminates it after 360 minutes).Have you read the Contributing Guidelines on issues?
Yes
To Reproduce
Here's the repo with the failure: https://github.com/T-Regx/T-Regx.github.io/runs/1342405267?check_suite_focus=true
I've tried different jobs, I've written my own (
build.yml
andnode.js.yml
), and I've also copied one provided in: https://v2.docusaurus.io/docs/deployment/#deployThe
npm install
and thessh
steps work just fine. Butnpm run build
and/ornpm run deploy
seem stuck. You can read the logs in the actionsThe log that appears to be repeating often is:
(node:2546) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/home/runner/work/T-Regx.github.io/T-Regx.github.io/website/.docusaurus/docusaurus-plugin-content-blog/default/site-blog-2020-02-18-release-0-9-2-md-8f9.json'
(node:2546) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
Expected behavior
I would expect for docusaurus to build on GH Actions, just as easily as locally.
Actual Behavior
The build is failing. I understand it tries to read files from
website/.docusaurus
folder, but the folder doesn't exist there.Your Environment
The repo is public: https://github.com/T-Regx/T-Regx.github.io You can see the workflows
Reproducible Demo
(Paste the link to an example repo, including a
siteConfig.js
, and exact instructions to reproduce the issue.)https://github.com/T-Regx/T-Regx.github.io
The text was updated successfully, but these errors were encountered: