Search code examples
npmbuildcontinuous-integrationyaml

What does the :ci in npm run build:ci do?


In our github workflows yml file, I see run: npm run build:ci replacing run: npm run build. What does the :ci part do differently?


Solution

  • This is actually something we defined in our package.json. Disabling linking for CI purposes.

    enter image description here

    "scripts": {
      "start": "react-scripts start",
      "build": "react-scripts build",
      "build:ci": "DISABLE_ESLINT_PLUGIN=true react-scripts build",
      ...