mirror of
https://github.com/actions/setup-node
synced 2025-04-18 22:23:11 +00:00
add cache-skip-save
This commit is contained in:
parent
377c6dae40
commit
2ef4eb6ac1
@ -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…
Reference in New Issue
Block a user