Repository navigation
feat: YouTube API v3 worker deploy + fix CI workflow failures - #247
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
1. YouTube API v3 worker (src/youtube-worker.ts) already implemented with
/api/channel, /api/videos, /api/search endpoints for channel UCrjJP_SHUeCmqpTSHJCXkdA.
2. .circleci/config.yml — three workflow fixes and new jobs:
- node-checks: upgrade to cimg/node:22.x (was 20.18), add
`npm install --legacy-peer-deps` in functions/ before linting
- worker-validate: new job — installs pnpm deps, runs tsc on the
Cloudflare worker, validates wrangler.jsonc
- worker-deploy: new job — deploys ytstudio worker to Cloudflare on
every push to main (gracefully skips when CLOUDFLARE_API_TOKEN unset)
- deploy workflow: new workflow running worker-deploy on main branch
3. functions/package.json — two bugs fixed:
- Duplicate firebase-admin keys; second entry "^10.3.0" was winning
in JSON parse and conflicting with firebase-functions@7 peer dep.
Removed duplicate; kept "^13.9.0".
- node engine "24" changed to ">=20" for CircleCI Node 22 compat.
4. functions/.eslintrc.js — reformatted from minified one-liner.
The Google ESLint config enforces max-len:80; the 483-char single line
was failing its own lint rules. Also added .eslintrc.js to ignorePatterns.
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 | b2903b1 | Oct 16 2026, 08:25 PM |
Contributor
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
ytstudio | b2903b1 | Oct 16 2026, 08:25 PM |
❌ 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. |
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
src/youtube-worker.tsprovides/api/channel,/api/videos, and/api/searchendpoints for channelUCrjJP_SHUeCmqpTSHJCXkdAvia Cloudflare Workers. Thewrangler.jsonctargets this worker asytstudio.worker-validate(type-checks worker, validates wrangler config) andworker-deploy(deploys to Cloudflare onmain; gracefully skips ifCLOUDFLARE_API_TOKENis unset).node-checksjob: upgraded tocimg/node:22.xand addednpm install --legacy-peer-depsinfunctions/before running ESLint — previously the job attempted to lint without installing function-level deps.functions/package.json: removed duplicatefirebase-adminkey (the second"^10.3.0"entry was winning JSON parse and breaking thefirebase-functions@7peer dep constraint). Updatednodeengine from"24"to">=20".functions/.eslintrc.js: reformatted from a 483-char minified one-liner to readable multi-line format. The Google ESLint config enforcesmax-len: 80, so the file was failing its own lint rules. Added.eslintrc.jstoignorePatternsas well.Test plan
validateworkflow:python-checks,node-checks,worker-validateall passdeployworkflow:worker-deployruns on merge tomain(setCLOUDFLARE_API_TOKENin CircleCI project env for live deploy)https://ytstudio.<account>.workers.dev/api/channel,/api/videos,/api/searchhttps://app.circleci.com/agents/gh/ruhdevops/chat/aa790f6c-eecd-43eb-acf6-b346b769445c