FirebaseExtended / FirebaseExtended/action-hosting-deploy

[BUG] firebase-tools@13 (latest) now requires Node 18 or Node 20

Open
#326 5 comments 7 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
809
Forks
232
PR merge metrics
No merged PRs in 30d

Description

### Action config

```
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT }}"
expires: 30d
projectId: my-awesome-project
```

### Error message
```
npm WARN exec The following package was not found and will be installed: firebase-tools@13.0.0
npm WARN EBADENGINE Unsupported engine ***
npm WARN EBADENGINE package: 'firebase-tools@13.0.0',
npm WARN EBADENGINE required: *** node: '>=18.0.0 || >=20.0.0' ***,
npm WARN EBADENGINE current: *** node: 'v16.20.2', npm: '8.19.4' ***
npm WARN EBADENGINE ***
Firebase CLI v13.0.0 is incompatible with Node.js v16.20.2 Please upgrade Node.js to version >=18.0.0 || >=20.0.0

The process '/opt/hostedtoolcache/node/16.20.2/x64/bin/npx' failed with exit code 1
Retrying deploy with the --debug flag for better error output
/opt/hostedtoolcache/node/16.20.2/x64/bin/npx firebase-tools@latest hosting:channel:deploy pr2676-RR-11[42](https://github.com/RentRedi/RRWebApp/actions/runs/7119978382/job/19386237552#step:5:45)8 --expires 5d --project rrdevenvironment --debug
Firebase CLI v13.0.0 is incompatible with Node.js v16.20.2 Please upgrade Node.js to version >=18.0.0 || >=20.0.0

The process '/opt/hostedtoolcache/node/16.20.2/x64/bin/npx' failed with exit code 1
Error: The process '/opt/hostedtoolcache/node/16.20.2/x64/bin/npx' failed with exit code 1
```

### Expected behavior

Deployment step succeeds.

### Actual behavior

Deployment step fails due to incompatible Node version.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.