Repository navigation
fix: resolve CI workflow failures and add YouTube API worker-build job - #251
Open
circleci-app[bot] wants to merge 1 commit into
Open
circleci-app[bot] wants to merge 1 commit into
circleci-app[bot] wants to merge 1 commit into
Conversation
- Fix functions/package.json: remove duplicate firebase-admin key, remove stray `lint` package from dependencies, upgrade firebase-admin to ^13.9.0, fix typescript from invalid ^6.0.0 to stable ^5.8.3, downgrade engines.node from 24 to 20 to match CI image - Fix node-checks CI job: add `npm install` step in functions/ before running ESLint and tsc (both were failing because node_modules were not installed in that subdirectory) - Add worker-build CI job: installs pnpm deps, runs `tsc --noEmit` against src/youtube-worker.ts (the YouTube API v3 Cloudflare Worker), then deploys to Cloudflare Workers via wrangler when CLOUDFLARE_API_TOKEN is set in the project environment - Add worker-build to validate workflow alongside python-checks and node-checks AI-Generated: true
|
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
ytstudio | 02a93e1 | Oct 17 2026, 03:24 AM |
Contributor
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
ytstudio | 02a93e1 | Oct 17 2026, 03:24 AM |
✅ Deploy Preview for elegant-seahorse-d9d460 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
❌ Deploy Preview for ytr-studio failed.
|
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
functions/package.json: removed duplicatefirebase-adminentry, removed straylintpackage from dependencies, upgradedfirebase-adminto^13.9.0, correctedtypescriptfrom non-existent^6.0.0to stable^5.8.3, and setengines.nodeto20to match the CI Docker imagenode-checksCI job: added an explicitnpm installstep insidefunctions/before running ESLint andtsc— both were failing because the subdirectory'snode_moduleswere never populatedworker-buildCI job: installs root pnpm dependencies, type-checkssrc/youtube-worker.ts(the YouTube API v3 Cloudflare Worker) viatsc --noEmit, then deploys to Cloudflare Workers with Wrangler whenCLOUDFLARE_API_TOKENis available in the project environmentworker-buildinto thevalidateworkflow alongsidepython-checksandnode-checksWorker overview
src/youtube-worker.tsis a Cloudflare Worker that proxies YouTube Data API v3 for channelUCrjJP_SHUeCmqpTSHJCXkdA. It exposes:GET /or/healthGET /api/channelGET /api/videosGET /api/search?q=…All endpoints fall back to demo data when
YOUTUBE_API_KEYis not bound as a Cloudflare secret.Test plan
validateworkflow runs all three jobs (python-checks,node-checks,worker-build) without hard failuresnode-checksESLint and tsc steps complete afternpm installinfunctions/worker-buildtype-check passes onsrc/youtube-worker.tsCLOUDFLARE_API_TOKENin CircleCI project env to enable live worker deployhttps://app.circleci.com/agents/gh/ruhdevops/chat/e56b71bf-d6d2-42f6-9fa0-55e42642cf71