Fail to install netlify cli action
We're using this action in ubuntu-latest environment, with node 12.x The installation failed with some weird logs below

got the same error
it's caused by this https://github.com/Marak/colors.js/commit/074a0f8ed0c31c35d13d28632bd8a049ff136fb6
npm seems to have removed the problematic version of colors.js, so I think it's working now!
👋 I think it does not completely solve the issue. The build is ok BUT the deploy now fails silently with RangeError: Invalid array length.
Do you confirm the same issue?
update ok sorry, this fix is not yet on master.
Oops. I was experiencing the same problem 😵💫 I'm sorry I didn't notice.

Although it seems that moving to npm will introduce another issue of access right during the build:
https://github.com/netlify/cli/issues/1870
do you reproduce on your CI too?
For instance I tried that branch which implements the fix uses: mannum/netlify-actions/cli@master and face the issue
https://github.com/mannum/netlify-actions/blob/master/cli/Dockerfile#L12
I am running on runs-on: ubuntu-latest
Oops. I was experiencing the same problem 😵💫 I'm sorry I didn't notice.
I think you are still using yarn, but the package has been somehow "removed" to not create anymore issues. This seems to be a side effect.
OK. I'll try mannum/netlify-actions too.
It would be nice if the Netlify team could maintain this and put that into their OKRs, especially for paid customer. #rant
I found it, that requires to upgrade the node version of the image to the most recent if we want to use npm: https://github.com/netlify/cli/issues/1870#issuecomment-799845077
Their version is still node 12 on master.
@AdrienFromToulouse Just to be sure, the current fix would be to use mannum/netlify-actions with node latest ?
I don't know why with Yarn it keeps failing but using npm you need a recent version of node/npm. Works on my end with
FROM node:16-alpine
LABEL version="1.0.1"
LABEL repository="http://github.com/netlify/actions"
LABEL homepage="http://github.com/netlify/actions/netlify"
LABEL maintainer="Netlify"
LABEL "com.github.actions.name"="Netlify"
LABEL "com.github.actions.description"="Wraps the Netlify CLI to enable common Netlify commands"
LABEL "com.github.actions.icon"="cloud"
LABEL "com.github.actions.color"="blue"
RUN npm install -g netlify-cli
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
@Wyfy0107 you may just fork netlify action and modify the dockerfile and point to your own fork.
Huh? I can now deploy with netlify/actions/cli@master.

May be some cache on yarn? idk
I don't know either ¯_(ツ)_/¯
@AdrienFromToulouse
If you try netlify/actions/cli@master now, will it succeed?
I tried again yesterday and it works now 😅