I get the warning
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: ./
I know it's because v12 has been deprecated and is being removed, but I've changed my usages from v12 to v18 and I don't understand why I still get this warning. It should have vanished.
I've read the doc for Actions Maintainers at https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runs-for-javascript-actions
While writing the question, I noticed in https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runs-for-javascript-actions that there was a runs:
. I had seen it, and overlooked it.
I didn't understood it was located in the /action.yml
, at the root.
Here is an example: https://github.com/UnlyEd/github-action-await-vercel/blob/cee5b33a0725899c2a78be7d73819114f6aac745/action.yml#L17
Changing this line obviously fixed the issue.