mirror of
https://github.com/actions/setup-node.git
synced 2025-06-29 14:13:49 +00:00
fix: change from using env to os module
This commit is contained in:
parent
2c3ea16a59
commit
8454a14c98
3 changed files with 14 additions and 10 deletions
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
|
@ -92567,7 +92567,7 @@ const restoreCache = (packageManager, cacheDependencyPath) => __awaiter(void 0,
|
|||
if (!packageManagerInfo) {
|
||||
throw new Error(`Caching for '${packageManager}' is not supported`);
|
||||
}
|
||||
const platform = process.env.RUNNER_OS;
|
||||
const platform = os_1.default.platform();
|
||||
const arch = os_1.default.arch();
|
||||
const cachePaths = yield (0, cache_utils_1.getCacheDirectories)(packageManagerInfo, cacheDependencyPath);
|
||||
core.saveState(constants_1.State.CachePaths, cachePaths);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue