enriikke / gatsby-gh-pages-action

GitHub Action to build and deploy your Gatsby site to GitHub Pages ❤️🎩
MIT License
295 stars 62 forks source link

Use `npm ci` instead of `npm install` #68

Open sebmos opened 2 years ago

sebmos commented 2 years ago

For automated deployment scripts, NPM suggests using npm ci instead of npm install: https://docs.npmjs.com/cli/v8/commands/npm-ci

The main advantage for this action would be that it "locks" the dependencies in place and wouldn't update package-lock.json, providing more certainty that things won't change unexpectedly.