mirror of
https://github.com/actions/setup-node.git
synced 2025-06-29 22:23:47 +00:00
Changes requests
This commit is contained in:
parent
5de08eab2b
commit
7406bf5e76
4 changed files with 137 additions and 44 deletions
|
@ -1,6 +1,5 @@
|
|||
import * as core from '@actions/core';
|
||||
import * as cache from '@actions/cache';
|
||||
import fs from 'fs';
|
||||
import {State} from './constants';
|
||||
import {getCacheDirectoriesPaths, getPackageManagerInfo} from './cache-utils';
|
||||
|
||||
|
@ -31,7 +30,7 @@ const cachePackages = async (packageManager: string) => {
|
|||
return;
|
||||
}
|
||||
|
||||
// TODO: core.getInput has a bug - it can return undefined despite its definition
|
||||
// TODO: core.getInput has a bug - it can return undefined despite its definition (tests only?)
|
||||
// export declare function getInput(name: string, options?: InputOptions): string;
|
||||
const cacheDependencyPath = core.getInput('cache-dependency-path') || '';
|
||||
const cachePaths = await getCacheDirectoriesPaths(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue