How can I use npm ci instead of npm install?

Well, that was quick! One of the normally-EU Build teammates was in the US and got me an answer already.

Here’s how you can do it:

  1. set NPM_FLAGS to --version (which would make us not do anything during our typical npm auto-installation)
  2. then run your own npm ci as part of your build command (maybe: npm ci && npm run build ?)

This will absolutely not use our cache for your dependencies.

However, $teammate points out that:

You can use build plugins to define custom caching and cache the node_modules

…but didn’t give more advice than that. I’ll leave you with these pointers to hack on a solution that suits you: