pnpm.io icon indicating copy to clipboard operation
pnpm.io copied to clipboard

outdated actions/setup-node@v2 uses unsupported node12

Open MikeMcC399 opened this issue 1 year ago • 1 comments

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

MikeMcC399 avatar Jul 29 '24 13:07 MikeMcC399

Please let me know if you would like a PR to delete the outdated section.

MikeMcC399 avatar Jul 29 '24 13:07 MikeMcC399

This was updated I believe

zkochan avatar Sep 10 '24 23:09 zkochan

@zkochan

The note I was referring to is still there on the website:

image

MikeMcC399 avatar Sep 11 '24 05:09 MikeMcC399