GitHub Actions: Node.js 12 actions are deprecated
If you use GitHub Actions to run Workflows and tests, you might have spotted this warning recently:
Node.js 12 actions are deprecated. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/. Please update the following actions to use Node.js 16: actions/checkout@v2
This warning means that GitHub will deprecate a certain action, which checks out the repository into the runner. This is going on since early 2022 and by summer 2023 they plan to upgrade all actions to v16.
The fix for this warning is easy. Open your workflow, and search the following step:
- name: Checkout code uses: actions/checkout@v2
Usually it's the first step, or one of the first steps. Change it to:
- name: Checkout code uses: actions/checkout@v3
Commit the change, push it to the repository and see if anything breaks. Should work without problems.
Display comments as Linear | Threaded