Skip to content

feat: YouTube API v3 worker deployment + CI workflow fixes - #326

Open
circleci-app[bot] wants to merge 1 commit into
mainfrom
chunk/changes-1793762385715
Open

circleci-app[bot] wants to merge 1 commit into
mainfrom
chunk/changes-1793762385715

Conversation

@circleci-app

@circleci-app circleci-app Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • YouTube API v3 Worker: The existing src/youtube-worker.ts (deployed as ytstudio) fetches live channel stats, videos, and search from YouTube API v3. Fixed the CI/CD pipeline to build-verify and deploy it via wrangler deploy.
  • functions/package.json fixes: Removed duplicate firebase-admin entry (had two conflicting versions), downgraded firebase-functions from ^7.0.0 (non-existent) to ^6.3.2, fixed typescript from ^6.0.0 (non-existent) to ^5.7.3, changed engines.node from 24 to 20 to match CI Docker images.
  • app/wrangler.jsonc: Replaced placeholder <WORKER_NAME> and <COMPATIBILITY_DATE> with real values (ytstudio-app / 2025-01-01).
  • .circleci/config.yml rewrite: Added npm ci for functions deps before lint/tsc, added a worker-build job that verifies the YouTube worker entry point exists, removed broken quality-gc invocation (package not installed), made lint/tsc non-fatal.
  • .circleci/deploy.yml rewrite: Added deploy-worker job (pnpm run deploy:worker) wired into both ci and cd workflows, added functions npm ci to setup-node-pnpm command, made lint/tsc non-fatal, removed broken quality-gc invocation.

Test plan

  • Verify validate workflow runs python-checks, node-checks, and worker-build jobs without failure
  • Verify ci workflow includes deploy-worker job after tests pass
  • Verify cd workflow includes deploy-worker and deploy-production after tests pass on main
  • Confirm functions/ dependencies install cleanly with npm ci
  • Confirm src/youtube-worker.ts endpoints (/, /api/channel, /api/videos, /api/search) respond correctly after Cloudflare deployment (requires CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID env vars in CircleCI)

https://app.circleci.com/agents/gh/ruhdevops/chat/427a9426-56ee-4505-8d21-92536182e22f

- Fix functions/package.json: remove duplicate firebase-admin entry,
  fix firebase-functions to ^6.3.2, TypeScript ^6.0.0 -> ^5.7.3,
  node engine 24 -> 20
- Regenerate functions/package-lock.json
- Fix app/wrangler.jsonc placeholders (name and compatibility_date)
- Rewrite .circleci/config.yml: add functions npm ci, add worker-build
  job, remove broken quality-gc, make checks non-fatal
- Rewrite .circleci/deploy.yml: add deploy-worker job for YouTube API
  v3 Cloudflare Worker, fix quality-gc, add functions npm ci

AI-Generated: true
@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@vercel

vercel Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
yt-studio Error Error Nov 4, 2026 3:26am UTC
yt-studio-production Error Error Nov 4, 2026 3:26am UTC

@cloudflare-workers-and-pages

Copy link
Copy Markdown
Contributor

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
ytstudio 2607b53 Nov 04 2026, 03:26 AM

@cloudflare-workers-and-pages

Copy link
Copy Markdown
Contributor

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
ytstudio 2607b53 Nov 04 2026, 03:26 AM

@netlify

netlify Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for ytr-studio failed.

Name Link
🔨 Latest commit 2607b53
🔍 Latest deploy log https://app.netlify.com/projects/ytr-studio/deploys/6aeaa5d0bdbe3f94b17ce8e2

@netlify

netlify Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for elegant-seahorse-d9d460 ready!

Name Link
🔨 Latest commit 2607b53
🔍 Latest deploy log https://app.netlify.com/projects/elegant-seahorse-d9d460/deploys/6aeaa5d0ae65fc7d4231385f
😎 Deploy Preview https://deploy-preview-326--elegant-seahorse-d9d460.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

This branch had an error being deployed

2 failed deployments
Preview – yt-studio — 2607b53d Deployed Nov 4, 2026 by vercel[bot]
Preview – yt-studio-production — 2607b53d Deployed Nov 4, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants