-
released this
2021-08-06 00:17:12 +08:00 | 284 commits to main since this releaseThis release introduces dependency caching support for mono repos and repositories with complex structure (#305).
By default, the action searches for the dependency file (
package-lock.jsonoryarn.lock) in the repository root. Use thecache-dependency-pathinput for cases when multiple dependency files are used, or they are located in different subdirectories. This input supports wildcards or a list of file names for caching multiple dependencies.Yaml example:
steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: node-version: 14 cache: npm cache-dependency-path: 'sub-project/package-lock.json'For more examples of using
cache-dependency-pathinput, see the Advanced usage guide.Downloads