mirror of
https://github.com/actions/setup-node.git
synced 2025-04-22 03:28:42 +00:00
add cache-skip-save
This commit is contained in:
parent
377c6dae40
commit
2ef4eb6ac1
1 changed files with 4 additions and 1 deletions
|
@ -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-skip-save:
|
||||
description: 'Used to skip saving of the cached dependencies.'
|
||||
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:
|
||||
|
@ -36,4 +39,4 @@ runs:
|
|||
using: 'node16'
|
||||
main: 'dist/setup/index.js'
|
||||
post: 'dist/cache-save/index.js'
|
||||
post-if: success()
|
||||
post-if: success() && inputs.cache-skip-save == true
|
||||
|
|
Loading…
Add table
Reference in a new issue