Gitlab CI with yarn

I read the nice documentation about CI LINK

There we have some commands like npm ci to install the dependencies and cache in ~/.npm and npx to run some command. But npm is too slow, how to do it using yarn? Just run yarn install?

To use yarn in CI, I’d recommend replacing commands in the following way:

  • change npm ci to yarn install --frozen-lockfile
  • change npx to yarn run.
  • change npm install --save-dev expo-cli to yarn add --dev expo-cli

Thanks, it works well

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.