Skip to content

feat: YouTube API worker deploy + workflow & package fixes - #263

Open
circleci-app[bot] wants to merge 1 commit into
mainfrom
chunk/yt-worker-deploy-fix-2
Open

circleci-app[bot] wants to merge 1 commit into
mainfrom
chunk/yt-worker-deploy-fix-2

Conversation

@circleci-app

@circleci-app circleci-app Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • New worker-checks CI job: validates src/youtube-worker.ts via TypeScript and verifies wrangler config on every branch
  • New worker-deploy CI job: deploys the ytstudio Cloudflare Worker (YouTube API v3 proxy) on main — gracefully skips if CLOUDFLARE_API_TOKEN is not set
  • Fixed node-checks CI job: added npm install before lint so devDependencies are available; switched to npm run build (uses local tsc) instead of relying on a globally-installed TypeScript
  • Fixed package.json (root): removed duplicate circletui dependency that caused pnpm parse warnings
  • Fixed functions/package.json: removed duplicate firebase-admin key (kept ^13.9.0), removed invalid lint runtime dependency
  • Fixed app/wrangler.jsonc: replaced <WORKER_NAME> and <COMPATIBILITY_DATE> placeholders with ytstudio-app and 2025-01-01

Worker Overview

src/youtube-worker.ts is a Cloudflare Worker that proxies YouTube Data API v3 calls:

  • GET / or /health — health check + endpoint listing
  • GET /api/channel — channel statistics for UCrjJP_SHUeCmqpTSHJCXkdA
  • GET /api/videos — paginated uploads playlist with category detection
  • GET /api/search?q=... — channel-scoped video search

Falls back to demo data if YOUTUBE_API_KEY is not bound.

Test plan

  • Validate workflow runs python-checks, node-checks, and worker-checks without errors
  • Deploy workflow runs worker-deploy on merge to main
  • If CLOUDFLARE_API_TOKEN env var is set in CircleCI project settings, worker deploys successfully
  • Worker health endpoint responds at deployed URL

https://app.circleci.com/agents/gh/ruhdevops/chat/a9cef362-09f3-4417-886c-c01c1d53b3df

- Add worker-checks CI job: TypeScript validates src/youtube-worker.ts and
  checks wrangler config on every branch
- Add worker-deploy CI job: deploys ytstudio Cloudflare Worker on main
  branch using CLOUDFLARE_API_TOKEN (gracefully skipped if token absent)
- Fix node-checks job: run npm install before lint and use npm run build
  instead of raw tsc invocation so devDeps are present
- Fix root package.json: remove duplicate circletui dependency
- Fix functions/package.json: remove duplicate firebase-admin (keep ^13.9.0),
  remove invalid lint runtime dependency
- Fix app/wrangler.jsonc: replace <WORKER_NAME> and <COMPATIBILITY_DATE>
  placeholders with real values (ytstudio-app / 2025-01-01)

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 Oct 20, 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 Oct 20, 2026 12:25am UTC
yt-studio-production Error Error Oct 20, 2026 12:25am 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 4b298cb Oct 20 2026, 12:24 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 4b298cb Oct 20 2026, 12:24 AM

@netlify

netlify Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for ytr-studio failed.

Name Link
🔨 Latest commit 4b298cb
🔍 Latest deploy log https://app.netlify.com/projects/ytr-studio/deploys/6ad6b4d43f46c4a763f008b8

@netlify

netlify Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for elegant-seahorse-d9d460 ready!

Name Link
🔨 Latest commit 4b298cb
🔍 Latest deploy log https://app.netlify.com/projects/elegant-seahorse-d9d460/deploys/6ad6b4d41b6be056471361df
😎 Deploy Preview https://deploy-preview-263--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-production — 4b298cb8 Deployed Oct 20, 2026 by vercel[bot]
Preview – yt-studio — 4b298cb8 Deployed Oct 20, 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