mirror of
https://github.com/actions/setup-node.git
synced 2025-04-22 09:21:00 +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 cachePackages = async (packageManager: string) => {
|
||||||
const state = core.getState(State.CacheMatchedKey);
|
const state = core.getState(State.CacheMatchedKey);
|
||||||
const primaryKey = core.getState(State.CachePrimaryKey);
|
const primaryKey = core.getState(State.CachePrimaryKey);
|
||||||
let cachePaths = JSON.parse(core.getState(State.CachePaths) || '[]') as string[];
|
let cachePaths = JSON.parse(
|
||||||
cachePaths = cachePaths.filter(fs.existsSync)
|
core.getState(State.CachePaths) || '[]'
|
||||||
|
) as string[];
|
||||||
|
cachePaths = cachePaths.filter(fs.existsSync);
|
||||||
|
|
||||||
const packageManagerInfo = await getPackageManagerInfo(packageManager);
|
const packageManagerInfo = await getPackageManagerInfo(packageManager);
|
||||||
if (!packageManagerInfo) {
|
if (!packageManagerInfo) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue