Skip to content

Conversation

@ChrisSchwerdt
Copy link

Problem

npm install may potentially make modifications to the contents of package-lock.json. One scenario where this may occur is when the version of npm on the GitHub Action ubuntu-latest image differs from the version used locally. Combined with the git-auto-commit-action, this can then lead to the linter inadvertently committing changes to package-lock.json as a side-effect of npm install.

Fix

Use npm ci, which will not make any changes to package-lock.json, and is what is recommended to use in GitHub Actions regardless.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant