I had done everything I found that could work, but no luck. I always end with this error: "Firebase CLI v12.5.2 is incompatible with Node.js v12.18.1 Please upgrade Node.js to version >=16.13.0 || >=18.0.0", which makes no sense to me since I am setting up node to the latest version before trying to make a request to Firebase. If you have any idea on why this is, please let me know!
name: Deploy to Firebase Hosting on PR
on:
push:
branches:
- main
jobs:
build_and_preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: latest
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT }}'
projectId: ...
channelId: live
- uses: w9jds/firebase-action@v1.5.0
with:
args: database:set /Request '"NewVersionOfFARKMain"'
projectId: ...
env:
FIREBASE_TOKEN: '${{ secrets.FIREBASERTDB }}'
This is the code I ended up on. Not the only thing I had tried, but the most promising one.