Skip to content

feat: YouTube API v3 worker deploy + CI workflow fixes - #325

Open
circleci-app[bot] wants to merge 1 commit into
mainfrom
chunk/youtube-api-worker-deploy-v2
Open

circleci-app[bot] wants to merge 1 commit into
mainfrom
chunk/youtube-api-worker-deploy-v2

Conversation

@circleci-app

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

Copy link
Copy Markdown
Contributor

Summary

  • YouTube API v3 Worker (src/youtube-worker.ts): implements /api/channel, /api/videos, and /api/search endpoints against the Cloudflare Workers runtime. Falls back to demo data when YOUTUBE_API_KEY is not set.
  • New CircleCI deploy workflow: gates a deploy-worker job on python-checks + node-checks passing, then deploys the worker via pnpm run deploy:worker → wrangler deploy. Only runs on the main branch.
  • validate workflow: unchanged — runs python-checks and node-checks on every push.

Fixes

File Fix
.circleci/config.yml Added deploy-worker job and deploy workflow; fixed node-checks to install functions deps separately and use local tsc binary
app/wrangler.jsonc Corrected worker name to ytstudio-app, set compatibility_date: 2025-01-01
functions/package.json Removed duplicate firebase-admin, changed node engine from 24→20, pinned typescript to ^5.5.0
functions/.eslintrc.js Expanded minified config to readable form
functions/package-lock.json Trimmed to only packages required by functions/package.json
package.json Removed duplicate trigger-circleci-pipeline from devDependencies and duplicate circletui from dependencies
fix_app.py, fix_deps.py, fix_index.py Ruff-compliant reformatting

Local verification

All CI steps passed locally:

  • ruff check . → clean
  • ruff format --check . → 59 files already formatted
  • mypy fix_*.py → no issues
  • pnpm install --frozen-lockfile → lockfile up to date
  • functions eslint + tsc → both exit 0

https://app.circleci.com/agents/gh/ruhdevops/chat/a17e5853-f039-4c80-919c-061bb3123c99

- Add deploy-worker CircleCI job that deploys src/youtube-worker.ts to
  Cloudflare Workers (ytstudio) using CLOUDFLARE_API_TOKEN
- Add deploy workflow that gates deploy-worker on passing python-checks
  and node-checks (main branch only)
- Fix CI node-checks: install functions deps separately, use local tsc binary
- Fix app/wrangler.jsonc: set correct worker name and compatibility_date
- Fix functions/package.json: resolve duplicate firebase-admin, downgrade
  typescript to ^5.5.0, correct node engine to 20
- Fix functions/.eslintrc.js: expand minified config to readable format
- Fix package.json: remove duplicate trigger-circleci-pipeline from
  devDependencies and duplicate circletui from dependencies
- Reformat Python fix scripts (ruff-compliant)
- Trim functions/package-lock.json to only required packages

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 2:32am UTC
yt-studio-production Error Error Nov 4, 2026 2:32am 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 a562267 Nov 04 2026, 02:31 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 a562267 Nov 04 2026, 02:31 AM

@netlify

netlify Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for ytr-studio failed.

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

@netlify

netlify Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for elegant-seahorse-d9d460 ready!

Name Link
🔨 Latest commit a562267
🔍 Latest deploy log https://app.netlify.com/projects/elegant-seahorse-d9d460/deploys/6aea9915a95331e8bce924e3
😎 Deploy Preview https://deploy-preview-325--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 — a5622678 Deployed Nov 4, 2026 by vercel[bot]
Preview – yt-studio — a5622678 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