action-hosting-deploy
action-hosting-deploy copied to clipboard
[BUG] Firebase CLI v10.0.1 is incompatible with Node.js v10.24.1
Action config
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_DEV }}'
projectId: my-awesome-project
channelID: live
target: ${{ env.TARGET }}
env:
FIREBASE_CLI_PREVIEWS: hostingchannels
-->
Error message
Firebase CLI v10.0.1 is incompatible with Node.js v10.24.1 Please upgrade Node.js to version >= 12 The process '/opt/hostedtoolcache/node/10.24.1/x64/bin/npx' failed with exit code 1 Retrying deploy with the --debug flag for better error output
Expected behavior
Last deployment on December 15 still worked, no packages were updated.
Actual behavior
We are still using AngularJs and Angular as a hybrid app. We are currently working on the full migration but it will take a while. However, we urgently need to be able to deploy again.
Have try using newer version of Node.js to deploy? Judging from the error message you have it seems to be that newer Firebase CLI only support version 12 and up. Node.js 10 had been EOL last year. Maybe try using Node.js v14 or v12?
Probably be a good idea to pass node version as a parameter
If you're stuck needing an older version of firebase-tools because of a node version, you can specify firebaseToolsVersion
now. That should get you unstuck!