aws / language-servers

AWS related Language Servers
Apache License 2.0
17 stars 15 forks source link

Run npm ci instead of npm install in GitHub actions #317

Closed imykhai closed 1 month ago

imykhai commented 1 month ago

Problem

Our GitHub actions use npm install which means that the resulting dependency tree can be different from what is in a package-lock.json.

Solution

Switched to the npm ci which is recommended for automated environments such as GitHub actions https://docs.npmjs.com/cli/v10/commands/npm-ci

More info: Why developers should use npm ci instead of npm install and its benefits?

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.