mirror of
https://github.com/actions/setup-node
synced 2025-04-09 10:25:52 +00:00
run format
This commit is contained in:
parent
36d77bfde2
commit
11883e881f
1 changed files with 4 additions and 2 deletions
|
@ -26,8 +26,10 @@ export async function run() {
|
|||
const cachePackages = async (packageManager: string) => {
|
||||
const state = core.getState(State.CacheMatchedKey);
|
||||
const primaryKey = core.getState(State.CachePrimaryKey);
|
||||
let cachePaths = JSON.parse(core.getState(State.CachePaths) || '[]') as string[];
|
||||
cachePaths = cachePaths.filter(fs.existsSync)
|
||||
let cachePaths = JSON.parse(
|
||||
core.getState(State.CachePaths) || '[]'
|
||||
) as string[];
|
||||
cachePaths = cachePaths.filter(fs.existsSync);
|
||||
|
||||
const packageManagerInfo = await getPackageManagerInfo(packageManager);
|
||||
if (!packageManagerInfo) {
|
||||
|
|
Loading…
Add table
Reference in a new issue