{"repo":"bahmutov/npm-install","free":true,"listed":false,"github":"https://github.com/bahmutov/npm-install","clone":"git clone https://github.com/bahmutov/npm-install.git","description":"GitHub Action for install npm dependencies with caching without any configuration","language":"JavaScript","stars":672,"topics":["github-actions","npm-install","yarn"],"license":null,"category":"workflow-automation","readme_excerpt":"npm-install [![semantic-release][semantic-image] ][semantic-url] [![renovate-app badge][renovate-badge]][renovate-app] GitHub Action for install npm dependencies with caching without any configuration CI Example Status --- --- main basic shrinkwrap Yarn without lock file subfolders Node version Examples Basic This example should cover 95% of use cases. If you use npm ci or yarn --frozen-lockfile on CI to install NPM dependencies - this Action is for you. Simply use it, and your NPM modules will be installed and the folder /.npm or /.cache/yarn will be cached. Typical use: See bahmutov/npm-install-action-example . Subfolders If your repository contains packages in separate folders, install each one separately See npm-install-monorepo-example . You can also specify multiple subfolders in a single action; one subfolder per line. Use lock file By default, this action will use a lock file like package-lock.json , npm-shrinkwrap.json or yarn.lock . You can set useLockFile: false to use just package.json which might be better for building libraries. Use time-based rolling cache By default, yarn and npm dependencies will be cached according to the exact hash of the lockfile (if enabled) or the package.json . This will cause cache misses when the dependencies change, which can be slower than re-installing for big projects. To re-use the cache across runs with different lockfiles/dependencies, you can enable the useRollingCache option, which will restore the cache from more keys. It wi","default_branch":null,"files":null,"tree":[],"storefront":"/r/bahmutov","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/bahmutov/npm-install/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}