ci-compatible-toolcache.mjs 448 B

12345678
  1. import assert from 'node:assert/strict'
  2. import { isAbsolute, join } from 'node:path'
  3. // The Actions runner exports RUNNER_TOOL_CACHE after step env. Run inside the
  4. // setup-node process so version installs use runner temp rather than shared state.
  5. const temp = process.env.RUNNER_TEMP
  6. assert(temp && isAbsolute(temp), 'Node compatibility setup requires an absolute RUNNER_TEMP')
  7. process.env.RUNNER_TOOL_CACHE = join(temp, 'node-compat-toolcache')