How can I ensure my CI/CD environment has enough memory to handle Yarn builds and avoid exit code 137?

Question

Grade: Education Subject: Support
How can I ensure my CI/CD environment has enough memory to handle Yarn builds and avoid exit code 137?
Asked by:
102 Viewed 102 Answers

Answer (102)

Best Answer
(304)
When configuring your CI/CD pipeline, ensure that the build agents or runners are provisioned with sufficient RAM. For services like GitHub Actions, GitLab CI, or CircleCI, you can select larger machine types or increase the memory allocated to your Docker containers or virtual machines used for builds.