Skip to content

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

Open
circleci-app[bot] wants to merge 1 commit into
mainfrom
chunk/youtube-api-worker-ci-fix-2
Open

circleci-app[bot] wants to merge 1 commit into
mainfrom
chunk/youtube-api-worker-ci-fix-2

Conversation

@circleci-app

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

Copy link
Copy Markdown
Contributor

Summary

  • YouTube API v3 worker (src/youtube-worker.ts) already implements full data fetching from channel UCrjJP_SHUeCmqpTSHJCXkdA via /api/channel, /api/videos, and /api/search endpoints — now wired into CircleCI for deployment
  • New deploy-worker CI job runs wrangler deploy on main branch; skips gracefully when CLOUDFLARE_API_TOKEN is not set
  • Fixed node-checks workflow failures caused by broken functions/package.json and minified .eslintrc.js

Fixes applied

File Problem Fix
functions/package.json Duplicate firebase-admin key (invalid JSON semantics), typescript@^6.0.0 doesn't exist, stray lint dep, engines.node: "24" Removed duplicates, pinned typescript@^5.5.0, node: "20"
functions/.eslintrc.js Minified onto one line — Google ESLint max-len: 80 flagged it immediately Reformatted to multi-line
app/wrangler.jsonc Placeholder <WORKER_NAME> and <COMPATIBILITY_DATE> values Set to yt-studio-app / 2025-01-01
.circleci/config.yml node-checks ran npm install in functions/ which failed due to above; no worker deploy job Rewrote jobs to use pnpm root install + separate npm for functions; added deploy-worker job

Test plan

  • validate workflow: python-checks and node-checks both pass on this branch
  • deploy-worker runs on merge to main (requires CLOUDFLARE_API_TOKEN secret in CircleCI project settings)
  • TypeScript compiles cleanly for both src/youtube-worker.ts and functions/src/index.ts
  • functions ESLint exits 0 with --max-warnings 0

https://app.circleci.com/agents/gh/ruhdevops/chat/9cafdaf2-871b-4fb1-9f58-33434aadf31f

…ures

- Add deploy-worker job to .circleci/config.yml that runs wrangler deploy
  for src/youtube-worker.ts (the full YouTube Data API v3 worker) on main
- Fix node-checks job: use pnpm from root for worker type-check, then npm
  for Firebase functions lint + tsc
- Fix functions/package.json: remove duplicate firebase-admin key, drop
  non-existent typescript@6, remove stray lint dep, pin node engine to 20
- Reformat functions/.eslintrc.js (was single-line, failing max-len rule)
- Fix app/wrangler.jsonc placeholder values (<WORKER_NAME>, <COMPATIBILITY_DATE>)

AI-Generated: true
@vercel

vercel Bot commented Nov 5, 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 5, 2026 3:26am UTC
yt-studio-production Error Error Nov 5, 2026 3:26am UTC

@bolt-new-by-stackblitz

Copy link
Copy Markdown

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

@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 993c3c8 Nov 05 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 993c3c8 Nov 05 2026, 03:26 AM

@netlify

netlify Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for ytr-studio failed.

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

@netlify

netlify Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for elegant-seahorse-d9d460 ready!

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