Skip to content

ci: bump setup-node to v4 and Node to 20 in release.yml #1198

Description

@mr-raj12

Description

.github/workflows/release.yml still pins actions/setup-node@v3 with node-version: 18. Both are behind the rest of the repo and carry real costs:

  • actions/setup-node@v3 depends on the Node 16 Actions runtime, which GitHub has deprecated. @v4 runs on Node 20.
  • Node.js 18 reached end-of-life on 2025-04-30 and no longer receives security updates. Node 20 is Active LTS.
  • This is the workflow that runs semantic-release to cut every spec release, so the toolchain it runs on is particularly sensitive.

Sister workflows in this repo already use the modern versions:

  • .github/workflows/validate-examples.ymlsetup-node@v4, node-version: '20'
  • .github/workflows/validate-embedded-examples.ymlsetup-node@v4, node-version: '20'

This issue tracks aligning release.yml with them.

Proposed change

In .github/workflows/release.yml:

  • actions/setup-node@v3actions/setup-node@v4
  • node-version: 18node-version: 20

semantic-release@21.0.7 (the version pinned in the workflow) and conventional-changelog-conventionalcommits@6.1.0 both support Node 20, so this is a drop-in bump.

Scope

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions