Open esperecyan opened 6 months ago
Hello @esperecyan Thank you for creating this issue. We will investigate it and get back to you as soon as we have some feedback.
Hitting this today too.
Running corepack enable before actions/setup-node will avoid this issue.
works only for node 18+
for node 14-16 see https://github.com/actions/setup-node/issues/1075#issuecomment-2165643488
Description: If I set
packageManager
property inpackage.json
and setcache: yarn
in this action, this action will fail.Related:
Action version: v4 (v4.0.2)
Platform:
Runner type:
Tools version:
Repro steps:
This is the workflow that reproduced this issue with the minimum configuration. https://github.com/esperecyan/actions-setup-node-debug/actions/runs/8907795048/workflow You can confirm that the issue does not occur in the following cases:
npm
topackageManager
.yarn
topackageManager
and do not setcache: yarn
for this action.Expected behavior:
actions/setup-node
succeeds.Actual behavior:
actions/setup-node
fails with the following error.Running
corepack enable
beforeactions/setup-node
will avoid this issue. https://github.com/esperecyan/actions-setup-node-debug/actions/runs/8907795048/job/24462266822