smoogipoo / osu-native

2 stars 2 forks source link

Use lockfile for nodejs dependencies github action #24

Closed minetoblend closed 3 months ago

minetoblend commented 3 months ago

Uses npm ci subcommand instead of npm install to install dependencies in github action. Also contains a npm lockfile (package-lock.json), which contains the fully resolved dependency tree with pinned versions and is used by npm ci to install the dependencies. The file is intended to be commited source control The lockfile would have to be updated (running npm install locally will automatically do this) in the repo every time the dependencies in package.json change, otherwise the install command will fail as it will check if the dependencies in the 2 files match.