-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to use latest corepack version with updated npm registry keys #1222
Comments
A
|
Hi @koodiohto, |
Corepack is broken in v4.2.0. See: actions/setup-node#1222
Corepack is broken in v4.2.0. See: actions/setup-node#1222
The workaround: Log: 3_Install.txt Workaround for windows is to only run on Node 23.x since it has the latest version of corepack. |
Hello everyone 👋, As @koodiohto correctly mentioned, Corepack updated npm registry keys in the latest version. The issue appears to be due to Corepack 0.29.4 bundled with Node.js 20.18.2, which doesn't include the updated npm registry keys. The relevant issue in nodejs/corepack#627 might be worth following for any updates from the node.js team. To fix this issue we recommend using the latest Node.js versions if possible. Alternatively, as a potential workaround, you can use the pnpm/action-setup action before the
Hope this helps! |
Thank you for the summary. I think this issue can be closed, since it really is a NodeJS issues, not |
We might need some help on how to install the latest corepack on Windows. As mentioned here: nodejs/corepack #627, the installed version corepack will get picked up before the version from |
Description:
Currently all our GitHub Actions workflows which use actions/setup-node@v4 fail for error:
I think the actions/setup-node@v4 should use the latest release version of corepack where the npm registry keys have been updated.
Action version:
v4
Platform:
Runner type:
Tools version:
Node.js: 20.18.2
Package Manager: pnpm 9.x
Repro steps:
Use the actions/setup-node@v4 in a GitHub Actions workflow.
Expected behavior:
The setup-node action should install Node.js and configure the package manager without encountering Corepack signature verification errors.
Actual behavior:
The setup-node fails immediately due to Corepack being unable to verify the signature of the npm registry key.
The text was updated successfully, but these errors were encountered: