feat(cache): add flag to only restore cache

This commit is contained in:
Ari Kishon 2023-08-31 12:29:33 +03:00 committed by GitHub
parent 5e21ff4d9b
commit 860bb139dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

@ -25,6 +25,9 @@ inputs:
description: 'Used to specify a package manager for caching in the default directory. Supported values: npm, yarn, pnpm.'
cache-dependency-path:
description: 'Used to specify the path to a dependency file: package-lock.json, yarn.lock, etc. Supports wildcards or a list of file names for caching multiple dependencies.'
cache-restore-only:
description: 'Set this option if you dont want to save the cache when it couldnt be restored.'
default: false
# TODO: add input to control forcing to pull from cloud or dist.
# escape valve for someone having issues or needing the absolute latest which isn't cached yet
outputs: