You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(docs): recommend users to use a lock file and npm ci when running in CI #2208
When users run npm install netlify-cli -g they always get the latest minor/patch versions of CLI dependencies. This usually works ok and helps users get the latest security updates, but can cause issues when packages don't follow semver.
When running in CI it is recommended to use a lock file and npm ci or yarn install --frozen-lockfile to ensure reproducible builds.
Importantnpm install netlify-cli -g also means users opt in to any CLI major (breaking) version change. Those are less frequent but still happen.
Describe the solution you'd like
Update the docs to recommend using a lock file when using the CLI in CI environments
Activity
JGAntunes commentedon Apr 27, 2021
Related to https://github.com/netlify/engineering/issues/318.