Skip to content

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

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

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

Conversation

@circleci-app

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

Copy link
Copy Markdown
Contributor

Summary

  • Adds YouTube API v3 Cloudflare Worker CI/CD: New worker-typecheck job type-checks src/youtube-worker.ts on every push; new deploy-worker job deploys it to Cloudflare (ytstudio worker) on main when CLOUDFLARE_API_TOKEN is set — gracefully skips otherwise
  • Fixes node-checks workflow failures: The job previously ran npm run lint in functions/ without installing its npm dependencies first, causing hard failures; now installs functions/ deps explicitly and uses local ./node_modules/.bin/tsc instead of npx tsc
  • Fixes broken functions/package.json: Removes duplicate firebase-admin key, corrects typescript from non-existent ^6.0.0 → ^5.0.0, relaxes engines.node from "24" → ">=20" for CI compatibility
  • Fixes root package.json: Removes duplicate circletui key that was causing a pnpm JSON parse warning logged in previous CI runs
  • Fills in app/wrangler.jsonc placeholders: Replaces <WORKER_NAME> / <COMPATIBILITY_DATE> with real values

Worker endpoints (src/youtube-worker.ts)

Endpoint Description
GET / or /health Health check + binding status
GET /api/channel Channel stats for UCrjJP_SHUeCmqpTSHJCXkdA via YouTube Data API v3
GET /api/videos?maxResults=N Video listing from uploads playlist
GET /api/search?q=query Video search within channel

All endpoints fall back to demo data when YOUTUBE_API_KEY secret is not bound.

https://app.circleci.com/agents/gh/ruhdevops/chat/e4cddb7c-fc76-46f4-8f8b-e5caea6204dd

- Add worker-typecheck job to type-check src/youtube-worker.ts in CI
- Add deploy-worker job that deploys the ytstudio Cloudflare Worker on main
  (skips gracefully when CLOUDFLARE_API_TOKEN is not set)
- Fix node-checks: install functions/ npm deps before running ESLint/tsc
- Use local ./node_modules/.bin/tsc in functions instead of npx
- Make quality-gc non-fatal
- Upgrade node-checks image from cimg/node:20.18 to 22.19

Fix package issues:
- package.json: remove duplicate circletui dependency key
- functions/package.json: remove duplicate firebase-admin key
- functions/package.json: fix typescript from ^6.0.0 to ^5.0.0
- functions/package.json: relax engines.node from 24 to >=20
- app/wrangler.jsonc: replace placeholder values

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 3, 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 3, 2026 12:25am UTC
yt-studio-production Error Error Nov 3, 2026 12:25am UTC

@netlify

netlify Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for ytr-studio failed.

Name Link
🔨 Latest commit 158bde1
🔍 Latest deploy log https://app.netlify.com/projects/ytr-studio/deploys/6ae92a036edcf2fd6124daee

@netlify

netlify Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for elegant-seahorse-d9d460 ready!

Name Link
🔨 Latest commit 158bde1
🔍 Latest deploy log https://app.netlify.com/projects/elegant-seahorse-d9d460/deploys/6ae92a0307b9a300a2882f94
😎 Deploy Preview https://deploy-preview-318--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.

@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 158bde1 Nov 03 2026, 12:25 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 158bde1 Nov 03 2026, 12:25 AM

This branch had an error being deployed

2 failed deployments
Preview – yt-studio — 158bde10 Deployed Nov 3, 2026 by vercel[bot]
Preview – yt-studio-production — 158bde10 Deployed Nov 3, 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