I use the netlify github aciton in order to deploy my site, and I successfully deployed two days ago (2nd September 9.44am BST), but I have gone to do a new deployment today (4th September) and my github actions are failing at the “Build netlify/actions/cli@master” stage. Nothing from my setup has changed, but it’s complaining about node versions.
I don’t know how this is a Netlify issue - if you’re specifying Node 16 in your GitHub Action, but it’s still using Node 12 - to me it sounds more like a GitHub issue than Netlify. If this was happening when building on Netlify, that’s something we can debug - but this is happening outside of Netlify.
In any case, that action isn’t doing anything special and you can most likely stop using it and directly deploy using Netlify CLI inside your GitHub Action.
Even if it’s something being caused by the action, it was last updated 2 years ago and with CLI being the de facto option to deploy sites, I don’t think it’s being maintained at this point.
Yep, agree with Leksat. Seems like some packages used by netlify cli have been upgraded and now require a higher node version. Should be a case of just upgrading the base docker file. Almost certain this is on netflify’s end.
Our suggestions here are to upgrade the node version to 14. Additionally, if this doesn’t work, we recommend following Scott’s suggestion above.
Our Support Engineers have shared this obstacle with our Engineering team. If there are any changes to this in the future, we will follow up on this thread.
@hillary It’s really worth noting here that upgrading to node version 14 is something Netlify have to do on their Github Action. This is not something all of us need to do. I know the workaround works just fine, but it really has to be stressed that if a fix were to come it must come from Netlify. Or you have to document that the Github Action is no longer supported.