Update GitHub Actions that still run on Node.js 20

オープン
#153 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 7 日以内に返信

@matej-marcisovsky がすでに取り組んでいます。

2026年10月16日 から。

評価

この issue はまだ評価されていません。

説明

What's wrong

Every workflow run shows this warning:

Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/setup-node@v4, pnpm/action-setup@v4.

GitHub currently forces these actions to run on Node 24 and will stop supporting Node 20 actions entirely (GitHub changelog).

Where

.github/actions/setup-pnpm/action.yml, the shared "Setup pnpm with cache" step used by ci.yml, qa.yml and release.yml.

Suggested change
Action Now Update to (runs on Node 24)
pnpm/action-setup @v4 @v6.1.0
actions/setup-node @v4 @v7.1.0
Things to check

actions/setup-node v5–v7:

  • needs runner v2.327.1+ (GitHub-hosted runners are fine)
  • automatic caching is now npm-only (we set cache: pnpm explicitly, so no change)
  • v7 no longer exports a placeholder NODE_AUTH_TOKEN, which only matters for npm publishing; release.yml would need a look if semantic-release is ever re-enabled

pnpm/action-setup v5/v6:

  • pnpm version comes from both the version input and packageManager in package.json, both 10.28.1 today
  • consider removing version: so package.json is the single source of truth
  • the v5.0.0/v6.0.0 release notes should be read for any other breaking changes

Other Node 20 actions: check whether other workflows or actions still target Node 20 (e.g. actions/checkout@v4, actions/cache@v4 and actions/[email protected] in ci.yml).

Done when

A CI run on a PR passes "Setup pnpm with cache" and "Install dependencies", and the Node 20 deprecation warning is gone from the run's annotations.

主要言語
TypeScript
スター
6
フォーク
5
平均マージ
5日 6時間
マージ済み PR(30日)
7

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

strapi/website のほかの issue

strapi/website の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。