Sourced from actions/setup-node's releases.
Support caching for mono repos and repositories with complex structure
This 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.json
oryarn.lock
) in the repository root. Use thecache-dependency-path
input 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-path
input, see the Advanced usage guide.Revert temporary fix
We had to disable pre-cached Node.js usage in the previous version due to the broken image cache. Now cache is fixed, so we can safely enable its usage again. Thank you for understanding.
Temporary maintenance fix.
Temporarily disabled usage of pre-cached Node.js.
25316bb
Merge pull request #305 from MaksimZhukov/mazhuk/adding-support-for-monorepos76a4cff
update readme and dist filesa869e7c
Merge branch 'main' of https://github.com/MaksimZhukov/setup-node into mazhuk...a0cdab1
Merge pull request #299 from actions/malob/adr-caching-monorepos4d0182a
Merge pull request #310 from actions/revert-308-v-alsvir/disable-cache-usage-...896ee80
Restore YARN flagd21ecc7
Revert "Temporarily disabled cache usage for v2"d6e3b55
Merge pull request #308 from actions/v-alsvir/disable-cache-usage-temp-v2db716f8
Add yarn env variablec24389f
Staging unstaged