mirror of
https://github.com/actions/setup-node.git
synced 2025-09-10 18:56:17 +00:00
initial commit
This commit is contained in:
parent
4dd8002ba1
commit
fdbef2dddd
13 changed files with 11282 additions and 24803 deletions
|
@ -135,7 +135,8 @@ It's **always** recommended to commit the lockfile of your package manager for s
|
|||
|
||||
## Caching global packages data
|
||||
|
||||
The action has a built-in functionality for caching and restoring dependencies. It uses [actions/cache](https://github.com/actions/cache) under the hood for caching global packages data but requires less configuration settings. Supported package managers are `npm`, `yarn`, `pnpm` (v6.10+). The `cache` input is optional, and caching is turned off by default.
|
||||
The action has a built-in functionality for caching and restoring dependencies. It uses [actions/cache](https://github.com/actions/cache) under the hood for caching global packages data but requires less configuration settings. Supported package managers are `npm`, `yarn`, `pnpm` (v6.10+). The `cache` input is optional. If not set, caching is automatically enabled if a supported package manager is detected in your `package.json` (`devEngines.packageManager.name` or `packageManager` field).
|
||||
If set to `''` (empty string), caching is explicitly disabled, even if a package manager is present.
|
||||
|
||||
The action defaults to search for the dependency file (`package-lock.json`, `npm-shrinkwrap.json` or `yarn.lock`) in the repository root, and uses its hash as a part of the cache key. Use `cache-dependency-path` for cases when multiple dependency files are used, or they are located in different subdirectories.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue