actions / starter-workflows

Accelerating new GitHub Actions workflows
https://github.com/features/actions
Other
8.59k stars 5.07k forks source link

Setup-Node: Update all workflows to use Setup-Node V4 #2380

Open jsoref opened 2 months ago

jsoref commented 2 months ago

Workflows should be using setup-node v4 (roughly https://github.com/actions/setup-node/releases/tag/v4.0.0, plus later updates). It doesn't have breaking changes. A bunch of workflows in this repository are already using it. There's no reason to inconsistently use v2/v3/v4.

Note that this also updates two workflows for this repository itself to themselves use node20-I'd hope that the change from node16 to node20 wouldn't break anything.

Pre-requisites


Please note that at this time we are only accepting new starter workflows for Code Scanning. Updates to existing starter workflows are fine.


Tasks

For all workflows, the workflow:

For CI workflows, the workflow:

For Code Scanning workflows, the workflow:

Some general notes: