Skip to content

Commit

Permalink
Downgraded Firebase Functions from Node 22 to 20 (#113)
Browse files Browse the repository at this point in the history
* Downgraded Firebase Functions from Node 22 to 20

* Added Superfeedr API env variables
  • Loading branch information
jwngr authored Dec 24, 2024
1 parent 581eb10 commit 9a2c30f
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/firebase-functions-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,24 @@ jobs:
working-directory: packages/functions
env:
FIRECRAWL_API_KEY: ${{ secrets.FIRECRAWL_API_KEY }}
SUPERFEEDR_USER: ${{ secrets.SUPERFEEDR_USER }}
SUPERFEEDR_API_KEY: ${{ secrets.SUPERFEEDR_API_KEY }}
run: |
if [ -z "$FIRECRAWL_API_KEY" ]; then
echo "Error: FIRECRAWL_API_KEY secret must be added in GitHub"
exit 1
fi
if [ -z "$SUPERFEEDR_USER" ]; then
echo "Error: SUPERFEEDR_USER secret must be added in GitHub"
exit 1
fi
if [ -z "$SUPERFEEDR_API_KEY" ]; then
echo "Error: SUPERFEEDR_API_KEY secret must be added in GitHub"
exit 1
fi
echo "FIRECRAWL_API_KEY=${FIRECRAWL_API_KEY}" > .env.conductor-prod
echo "SUPERFEEDR_USER=${SUPERFEEDR_USER}" >> .env.conductor-prod
echo "SUPERFEEDR_API_KEY=${SUPERFEEDR_API_KEY}" >> .env.conductor-prod
- name: Deploy Firebase Functions
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/firebase-functions-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,24 @@ jobs:
working-directory: packages/functions
env:
FIRECRAWL_API_KEY: ${{ secrets.FIRECRAWL_API_KEY }}
SUPERFEEDR_USER: ${{ secrets.SUPERFEEDR_USER }}
SUPERFEEDR_API_KEY: ${{ secrets.SUPERFEEDR_API_KEY }}
run: |
if [ -z "$FIRECRAWL_API_KEY" ]; then
echo "Error: FIRECRAWL_API_KEY secret must be added in GitHub"
exit 1
fi
if [ -z "$SUPERFEEDR_USER" ]; then
echo "Error: SUPERFEEDR_USER secret must be added in GitHub"
exit 1
fi
if [ -z "$SUPERFEEDR_API_KEY" ]; then
echo "Error: SUPERFEEDR_API_KEY secret must be added in GitHub"
exit 1
fi
echo "FIRECRAWL_API_KEY=${FIRECRAWL_API_KEY}" > .env.conductor-stag
echo "SUPERFEEDR_USER=${SUPERFEEDR_USER}" >> .env.conductor-stag
echo "SUPERFEEDR_API_KEY=${SUPERFEEDR_API_KEY}" >> .env.conductor-stag
- name: Deploy Firebase Functions
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"functions": [
{
"source": "packages/functions",
"runtime": "nodejs20",
"ignore": ["node_modules", ".git", "firebase-debug.log", "firebase-debug.*.log", "*.local"]
}
]
Expand Down

0 comments on commit 9a2c30f

Please sign in to comment.