action-hosting-deploy icon indicating copy to clipboard operation
action-hosting-deploy copied to clipboard

[BUG] action-hosting-deploy fails with Node v12

Open nappernick opened this issue 2 years ago • 5 comments

Action config

Error message

/opt/hostedtoolcache/node/12.22.12/x64/bin/npx firebase-tools hosting:channel:deploy pr2057-pricing_breakdown_si --only cms --expires 7d --project guesthouse-cms-dev --json

Firebase CLI v11.0.0 is incompatible with Node.js v12.22.12 Please upgrade Node.js to version >= 14.18.0

The process '/opt/hostedtoolcache/node/12.22.12/x64/bin/npx' failed with exit code 1

Expected behavior

Preview builds with Node v12.22

Actual behavior

Channel preview build fails due to the use of the newest version of firebase-tools, which dropped support for v12. Would love the ability to specify which version of firebase-tools the action uses while we migrate to v16.

nappernick avatar May 18 '22 23:05 nappernick

:+1: My team also faced this problem and manually deployed as workaround.

kou65536 avatar May 19 '22 07:05 kou65536

@nappernick Can you install node 14 or later, just before the actions deploy action runs?

ustun avatar May 20 '22 12:05 ustun

Yes, we also faced deployment problem on 12 version :(

sergeimelnik1980 avatar May 23 '22 09:05 sergeimelnik1980

The problem is because it is installing the last version of firebase and support for nodejs 12 has been dropped. Is there a way to specify the firebase cli version to use? Using version 10.9.2 will fix the problem. Moving to nodejs 14 is not so easy.

angelcervera avatar Jun 16 '22 07:06 angelcervera

This action is not official, but one would expect a little bit more support from Firebase team. As it is, the repo seems to be abandoned and as such we have forked it internally.

ustun avatar Jun 16 '22 13:06 ustun

The version of firebase-tools can now be specified, if you need to stick on an older version.

bkendall avatar Oct 14 '22 20:10 bkendall