MCPcopy Index your code
hub / github.com/actions/setup-node / setWorkspaceFor

Function setWorkspaceFor

__tests__/cache-restore.test.ts:14–16  ·  view source on GitHub ↗
(pm: PackageManager)

Source from the content-addressed store, hash-verified

12 type PackageManager = (typeof packageManagers)[number];
13
14 const setWorkspaceFor = (pm: PackageManager) => {
15 process.env['GITHUB_WORKSPACE'] = path.join(__dirname, 'data', pm);
16 };
17 const originalGithubWorkspace = process.env['GITHUB_WORKSPACE'];
18 if (!process.env.RUNNER_OS) {
19 process.env.RUNNER_OS = 'Linux';

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected