feat: add logic to enable corepack on passing optional input

This commit is contained in:
Sayak Mukhopadhyay 2022-12-26 22:32:49 +05:30
parent b6efa7f903
commit 53234c232f
No known key found for this signature in database
GPG key ID: 89EEFF3FB23D3FFD
3 changed files with 25 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.'
corepack:
description: 'Used to specify whether to enable Corepack. Set to true to enable all package managers or set it to one or more package manager names (separate package manager names by a space. Supported package manager names: npm, yarn, pnpm.'
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: