From 9955cbdb56d5aa7882048e06709695a137d2e3a5 Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Wed, 7 Feb 2024 08:47:44 +1100 Subject: chore: upgrade CI workflows to use Node 20 (#22304) No longer uses Node 16, which is deprecated. --- .github/mtime_cache/action.js | 6 +++--- .github/mtime_cache/action.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to '.github/mtime_cache') diff --git a/.github/mtime_cache/action.js b/.github/mtime_cache/action.js index bf77c2eb4..72821749e 100644 --- a/.github/mtime_cache/action.js +++ b/.github/mtime_cache/action.js @@ -1,9 +1,9 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. // This file contains the implementation of a Github Action. Github uses -// Node.js v12.x to run actions, so this is Node code and not Deno code. +// Node.js v20.x to run actions, so this is Node code and not Deno code. const { spawn } = require("child_process"); -const fs = require("fs"); +const { existsSync } = require("fs"); const { utimes, mkdir, readFile, writeFile } = require("fs/promises"); const { dirname, resolve } = require("path"); const { StringDecoder } = require("string_decoder"); @@ -147,7 +147,7 @@ async function* ls(dir = "") { break; case "160000": // Git submodule. // sometimes we don't checkout all submodules - if (fs.existsSync(path)) { + if (existsSync(path)) { yield* ls(path); } break; diff --git a/.github/mtime_cache/action.yml b/.github/mtime_cache/action.yml index f69085514..6d53b6c0e 100644 --- a/.github/mtime_cache/action.yml +++ b/.github/mtime_cache/action.yml @@ -7,4 +7,4 @@ inputs: required: true runs: main: action.js - using: node16 + using: node20 -- cgit v1.2.3