legion-labs / legion

Legion monorepo, contains the legion engine, the tools, source control, build system etc...
https://book.legionengine.com
Other
16 stars 2 forks source link

Api Codegen TypeScript: Clean cache before formating #2091

Open kevin-legion opened 2 years ago

kevin-legion commented 2 years ago

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 commented 2 years ago

@tltran-legion I wonder, is the CI machine cache preserved between builds? That could explain the error 😕