diff options
| author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-02-07 08:47:44 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-06 21:47:44 +0000 |
| commit | 9955cbdb56d5aa7882048e06709695a137d2e3a5 (patch) | |
| tree | 770560a57c89149a6fb75ed62ff1ed0c5ad784cd /.github/mtime_cache | |
| parent | c8b2af8ed1b27822b0e6193b7a82903f54e56d95 (diff) | |
chore: upgrade CI workflows to use Node 20 (#22304)
No longer uses Node 16, which is deprecated.
Diffstat (limited to '.github/mtime_cache')
| -rw-r--r-- | .github/mtime_cache/action.js | 6 | ||||
| -rw-r--r-- | .github/mtime_cache/action.yml | 2 |
2 files changed, 4 insertions, 4 deletions
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 |
