FirebaseExtended / action-hosting-deploy

Automatically deploy shareable previews for your Firebase Hosting sites
https://firebase.google.com/docs/hosting/github-integration
Apache License 2.0
695 stars 202 forks source link

[BUG] Firebase CLI v10.0.1 is incompatible with Node.js v10.24.1 #184

Closed christianloosli closed 1 year ago

christianloosli commented 2 years ago

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.

DW225 commented 2 years ago

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?

theonetheycallneo commented 2 years ago

Probably be a good idea to pass node version as a parameter

bkendall commented 1 year ago

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!