Repository navigation
feat: add YouTube API v3 worker deployment + fix CI workflow failures - #425
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
- Add `worker-build` job to .circleci/config.yml that TypeScript-checks src/youtube-worker.ts and deploys to Cloudflare when credentials available - Fix node-checks: add npm install --legacy-peer-deps for functions/ before lint/tsc - Fix python-checks: use ruff check/format --check (read-only CI mode) - Fix functions/package.json: remove duplicate firebase-admin key (ERESOLVE fix) - Fix functions/.eslintrc.js: reformat from minified; add self to ignorePatterns - Regenerate functions/package-lock.json with correct dependency tree - Update validate workflow to include the new worker-build job AI-Generated: true
|
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
❌ Deploy Preview for ytr-studio failed.
|
✅ Deploy Preview for elegant-seahorse-d9d460 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
ytstudio | 4d869a6 | Dec 04 2026, 03:31 AM |
Contributor
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
ytstudio | 4d869a6 | Dec 04 2026, 03:31 AM |
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
worker-buildjob to.circleci/config.ymlthat TypeScript-validatessrc/youtube-worker.ts(the YouTube API v3 Cloudflare Worker) and deploys it to Cloudflare as theytstudioworker whenCLOUDFLARE_API_TOKENis set — gracefully skips deployment otherwisenode-checksjob: addednpm install --legacy-peer-depsfor thefunctions/directory before running lint and tsc (was entirely missing, causing all lint/type-check steps to fail)python-checksjob: replacedruff check . --fixwith read-onlyruff check .andruff format --check .— write-mode tools in CI produce misleading results and can exit non-zero on unfixable issuesfunctions/package.json: removed duplicatefirebase-adminkey (^10.3.0shadowing^13.9.0); the^10.3.0version doesn't satisfyfirebase-functions@7's peer dep, causingnpm ERESOLVEon every installfunctions/.eslintrc.js: reformatted from minified single-line to readable multi-line; added.eslintrc.jsitself toignorePatternsso ESLint no longer reports 40 errors against its own configfunctions/package-lock.jsonwith the corrected dependency treevalidateworkflow to include the newworker-buildjobWorker endpoints (YouTube API v3)
The
ytstudioCloudflare Worker (src/youtube-worker.ts) exposes:GET /or/health— health check with endpoint listingGET /api/channel— channel stats forUCrjJP_SHUeCmqpTSHJCXkdAGET /api/videos?maxResults=N— paginated video listGET /api/search?q=query— channel video searchFalls back to demo data when
YOUTUBE_API_KEYsecret is not bound.Test plan
validateworkflow runs all three jobs:python-checks,node-checks,worker-buildnode-checkspasses lint (--max-warnings 0) and tsc after functions installworker-buildcompletes TypeScript check and prints wrangler versionnpm installin functionshttps://app.circleci.com/agents/gh/ruhdevops/chat/18583633-9b6e-4f13-974a-2977744d6ee7