pnpm.io
pnpm.io copied to clipboard
outdated actions/setup-node@v2 uses unsupported node12
Issue
https://pnpm.io/continuous-integration#github-actions contains a note
Caching packages dependencies with actions/setup-node@v2 requires you to install pnpm with version 6.10+.
actions/setup-node@v2 uses node12 which is no longer supported.
actions/setup-node@v3 uses node16 which is no longer supported.
actions/setup-node@v4 uses node20. This is the current supported version.
Reference
https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Following on from our warning in workflows using Node16 we will start enforcing the use of Node20 rather than Node16 on the 3rd of June (2024).
What you need to do For Actions maintainers: Update your actions to run on Node20 instead of Node16 (Actions configuration settings) For Actions users: Update your workflows with latest versions of the actions which runs on Node20 (Using versions for Actions)
Suggestion
Probably the reference to actions/setup-node@v2 can be removed from https://pnpm.io/continuous-integration#github-actions
Please let me know if you would like a PR to delete the outdated section.
This was updated I believe
@zkochan
The note I was referring to is still there on the website: