Explicitly import performance for Node 12 compatibility

This commit is contained in:
Henry Mercer 2022-08-19 11:12:10 +01:00
parent f0a1a35a9f
commit c72f566aae
6 changed files with 15 additions and 6 deletions

View file

@ -1,3 +1,6 @@
// We need to import `performance` on Node 12
import { performance } from "perf_hooks";
import * as core from "@actions/core";
import * as actionsUtil from "./actions-util";

View file

@ -1,5 +1,7 @@
import * as fs from "fs";
import * as path from "path";
// We need to import `performance` on Node 12
import { performance } from "perf_hooks";
import * as yaml from "js-yaml";
import * as semver from "semver";