mirror of
https://github.com/actions/setup-node.git
synced 2025-04-20 03:50:53 +00:00
Remove package-dir input
This commit is contained in:
parent
086599f868
commit
3fa1d09fcc
@ -25,8 +25,6 @@ inputs:
|
|||||||
description: 'Used to specify a package manager for caching in the default directory. Supported values: npm, yarn, pnpm.'
|
description: 'Used to specify a package manager for caching in the default directory. Supported values: npm, yarn, pnpm.'
|
||||||
cache-dependency-path:
|
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.'
|
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.'
|
||||||
project-dir:
|
|
||||||
description: 'Optional path used as a current working directory during executing package manager commands. Important if project directory is not the same as root.'
|
|
||||||
# TODO: add input to control forcing to pull from cloud or dist.
|
# 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
|
# escape valve for someone having issues or needing the absolute latest which isn't cached yet
|
||||||
outputs:
|
outputs:
|
||||||
|
@ -52,10 +52,6 @@ export const getCommandOutput = async (
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const getPackageManagerWorkingDir = (): string | null => {
|
export const getPackageManagerWorkingDir = (): string | null => {
|
||||||
const projectDir = core.getInput('project-dir');
|
|
||||||
if (projectDir) {
|
|
||||||
return projectDir;
|
|
||||||
}
|
|
||||||
|
|
||||||
const cache = core.getInput('cache');
|
const cache = core.getInput('cache');
|
||||||
if (cache !== 'yarn') {
|
if (cache !== 'yarn') {
|
||||||
|
Loading…
Reference in New Issue
Block a user