FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
Github Action gives my this error for the last "run: npm run build"
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
Error: Process completed with exit code 1.
Solution is to update the workflow with these additional details
run
jobs:
make-love:
steps:
- name: "Just do it"
run: |
export NODE_OPTIONS="--max_old_space_size=4096"
npm start
env
jobs:
make-love:
steps:
- name: "Nothing is impossible"
env:
NODE_OPTIONS: "--max_old_space_size=4096"
run: npm start