Gitlab CI with yarn


#1

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?


#2

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

#3

Thanks, it works well


closed #4

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