0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

GitHub ActionsでNode 12が非推奨となったのでアップデート

Posted at

事象

GitHub Actionsの実行結果を見ていると以下画像のようなワーニングの注釈が出ていた。

GitHubActions4.JPG
翻訳するとこんな感じ
Node.js 12 Actionsは非推奨です。Node.js 16を使用した後継のActionsを使用するために「actions/check@v2」をアップデートしてください。追加情報は、こちら:https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/

メールやGitHubのダッシュボード等でお知らせしてもらえれば気づけるけど、サラッとワーニングが出ていているだけじゃ気づかないよ・・・。
完全に使えなくなる前に気づけて良かった!

アップデート方法

追加情報のサイトにアクセスすると、どのようにアップデートすべきか書いてあるサイトへのリンクがあるので、その通りに変えるだけ。
結論から言うとactions/checkout@v2actions/checkout@v3にするだけよ:grin::bangbang:

変更前
- uses: actions/checkout@v2
変更後
- uses: actions/checkout@v3

参考サイト

Marketplace Actions Checkout
@masato_makino さん著 GitHub ActionsでNode.js 12のサポートが終了します
@n0bisuke さん著 GitHub ActionsでのNode.js利用のアップデートメモ

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?