Skip to content

YouTube API v3 Worker Deployment + CI Workflow Fixes - #323

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

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

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) already implements full data fetching with /api/channel, /api/videos, and /api/search endpoints — this PR wires up the CI/CD deployment pipeline and fixes blockers preventing the workflows from succeeding.
  • CI workflow failures fixed: functions/package.json had a duplicate firebase-admin key and TypeScript ^6.0.0 (non-existent version), causing npm install to silently resolve wrong packages; node-checks job never installed functions/ dependencies before running lint.
  • New deploy-worker CI job deploys src/youtube-worker.ts as the ytstudio Cloudflare Worker via wrangler on every push to main (gracefully skips if CLOUDFLARE_API_TOKEN is not configured).

Changes

File What changed
functions/package.json Removed duplicate firebase-admin, fixed typescript ^6.0.0 → ^5.5.2, firebase-functions ^7→^6.1.2, node engine 24→20
functions/package-lock.json Regenerated to match above
app/wrangler.jsonc Replaced <WORKER_NAME> → app-worker, <COMPATIBILITY_DATE> → 2025-01-01
package.json Removed duplicate circletui dependency
.circleci/config.yml Fixed node-checks (now installs functions deps); added worker-build-test and deploy-worker jobs

Test plan

  • python-checks job: Ruff + MyPy + pytest pass
  • node-checks job: ESLint and tsc pass in functions/ after npm install
  • worker-build-test job: app worker vitest tests run
  • deploy-worker job: wrangler deploys ytstudio worker (requires CLOUDFLARE_API_TOKEN env var in CircleCI project settings)
  • Confirm src/youtube-worker.ts endpoints work: /api/channel, /api/videos, /api/search

https://app.circleci.com/agents/gh/ruhdevops/chat/ad4cd397-6816-41da-9b5a-0a1ccda0d3d6

- Fix functions/package.json: remove duplicate firebase-admin key,
  update TypeScript from ^6.0.0 to ^5.5.2 (v6 doesn't exist),
  update firebase-functions to ^6.1.2, set node engine to 20
- Regenerate functions/package-lock.json to match updated deps
- Fix app/wrangler.jsonc: replace template placeholders <WORKER_NAME>
  and <COMPATIBILITY_DATE> with real values (app-worker, 2025-01-01)
- Fix root package.json: remove duplicate circletui dependency
- Rewrite .circleci/config.yml:
  - Fix node-checks job to install functions/ deps before lint/tsc
  - Add worker-build-test job for Cloudflare Worker
  - Add deploy-worker job that deploys src/youtube-worker.ts (ytstudio)
    to Cloudflare via wrangler; gracefully skips if no API token set

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 12:27am UTC
yt-studio-production Error Error Nov 4, 2026 12:27am 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 a3a0a69 Nov 04 2026, 12:27 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 a3a0a69 Nov 04 2026, 12:27 AM

@netlify

netlify Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for elegant-seahorse-d9d460 ready!

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

@netlify

netlify Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for ytr-studio failed.

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

This branch had an error being deployed

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