-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Downgraded Firebase Functions from Node 22 to 20 #113
Conversation
WalkthroughThe pull request introduces changes to the Firebase deployment workflow and configuration across multiple files. In the GitHub Actions workflow files for merge and pull request scenarios, two new environment secrets, Additionally, the Sequence DiagramsequenceDiagram
participant GA as GitHub Actions
participant Secrets as GitHub Secrets
participant Env as Environment Setup
participant Firebase as Firebase Deployment
GA->>Secrets: Check SUPERFEEDR_USER
GA->>Secrets: Check SUPERFEEDR_API_KEY
alt Secrets Missing
GA-->>GA: Exit with Error
else Secrets Present
GA->>Env: Create .env file
Env->>Env: Append Secrets
Env->>Firebase: Deploy Functions
Firebase-->>GA: Deployment Result
end
The sequence diagram illustrates the workflow's validation process, showing how the presence of secrets is checked before proceeding with environment setup and Firebase function deployment. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
🔇 Additional comments (4)firebase.json (1)
The downgrade to Node.js 20 is a good decision as it's a Long Term Support (LTS) version, providing better stability and security support until April 2026. This is more suitable for production deployments compared to Node.js 22 which is not yet an LTS release. .github/workflows/firebase-functions-merge.yml (2)
The validation logic for the new environment variables is well-implemented with clear error messages. Also applies to: 54-55
These changes appear to be unrelated to the Node.js version downgrade. They introduce Superfeedr integration, which seems to be a separate feature. Consider splitting this into a separate PR to maintain clear change tracking and easier rollback if needed. Let's verify the purpose of these new environment variables: .github/workflows/firebase-functions-pull-request.yml (1)
The changes mirror those in the merge workflow, maintaining consistency between staging and production environments. The environment variables are correctly configured for the staging environment. Also applies to: 47-54, 56-57 Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Visit the preview URL for this PR (updated for commit de5366c): https://conductor-stag--pr113-jw-firebase-function-0v0pavqp.web.app (expires Tue, 31 Dec 2024 21:29:15 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 834e855d1f1172274ecc7a165f6956c157c874fb |
See firebase/firebase-functions#1653
Summary by CodeRabbit
New Features
Bug Fixes
Configuration Changes