legion icon indicating copy to clipboard operation
legion copied to clipboard

Api Codegen TypeScript: Clean cache before formating

Open kevin-legion opened this issue 2 years ago • 1 comments

Hopefully fixes this CI error https://github.com/legion-labs/legion/runs/6987927767?check_suite_focus=true that occurs randomly.

The error seems to be on the NPM cli side: https://github.com/npm/cli/issues/4096.

The fix itself is rather extreme as we basically clean the NPM cache each time the prettier command fails.

kevin-legion avatar Jun 21 '22 20:06 kevin-legion