Skip to content

YouTube API v3 worker deploy + CI workflow failure fixes - #261

Open
circleci-app[bot] wants to merge 1 commit into
mainfrom
chunk/youtube-worker-deploy-and-ci-fixes
Open

circleci-app[bot] wants to merge 1 commit into
mainfrom
chunk/youtube-worker-deploy-and-ci-fixes

Conversation

@circleci-app

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

Copy link
Copy Markdown
Contributor

Summary

  • YouTube API v3 Worker deploy: Added deploy-worker job to .circleci/config.yml that runs wrangler deploy --env production on main branch, deploying src/youtube-worker.ts (which already implements the full YouTube API v3 integration for channel UCrjJP_SHUeCmqpTSHJCXkdA — /api/channel, /api/videos, /api/search endpoints with demo fallback).
  • Fixed node-checks CI failures: config.yml was calling npm run lint inside functions/ but never installing its npm deps (pnpm installs root only). Added explicit cd functions && npm install step. Also removed the npx quality-gc run call that had no installed package.
  • Fixed deploy.yml lint/build/test failures: Added reusable setup-functions-npm command and wired it into lint, build, and test jobs so each installs functions deps before running scripts.
  • Fixed functions/package.json: Removed duplicate firebase-admin key (last value ^10.3.0 was silently winning over ^13.9.0), removed spurious lint runtime dep, pinned typescript to stable ^5.8.0, added a test script so npm test exits cleanly.
  • Fixed app/wrangler.jsonc: Replaced <WORKER_NAME> and <COMPATIBILITY_DATE> placeholder strings with yt-studio-app and 2025-01-01.

Test plan

  • validate workflow: python-checks and node-checks jobs both pass
  • deploy workflow: deploy-worker triggers on merge to main and deploys the Cloudflare Worker (requires CLOUDFLARE_API_TOKEN + CLOUDFLARE_ACCOUNT_ID secrets set in CircleCI project)
  • ci workflow in deploy.yml: lint → build → test chain passes with functions deps now installed
  • cd workflow in deploy.yml: deploy-production succeeds on main (requires FIREBASE_TOKEN)

https://app.circleci.com/agents/gh/ruhdevops/chat/d132373e-323a-488d-86c0-3fc82389b8f3

- Add deploy-worker job to config.yml to deploy src/youtube-worker.ts
  to Cloudflare Workers (ytstudio) on main branch pushes
- Fix node-checks job: add `npm install` in functions/ before running
  lint/tsc — was failing because pnpm installs root deps only
- Remove quality-gc npx call that was failing (package not in deps)
- Add setup-functions-npm reusable command to deploy.yml; wire into
  lint, build, and test jobs so functions npm scripts can run
- Fix functions/package.json: remove duplicate firebase-admin key
  (^10.3.0 conflicted with ^13.9.0), remove spurious lint dep,
  downgrade typescript to stable ^5.8.0, add test script
- Fix app/wrangler.jsonc: replace <WORKER_NAME> and
  <COMPATIBILITY_DATE> placeholder values with yt-studio-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 19, 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 19, 2026 3:26am UTC
yt-studio-production Error Error Oct 19, 2026 3:26am 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 af6722b Oct 19 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 af6722b Oct 19 2026, 03:26 AM

@netlify

netlify Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for ytr-studio failed.

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

@netlify

netlify Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for elegant-seahorse-d9d460 ready!

Name Link
🔨 Latest commit af6722b
🔍 Latest deploy log https://app.netlify.com/projects/elegant-seahorse-d9d460/deploys/6ad58dc55a797162be398614
😎 Deploy Preview https://deploy-preview-261--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 — af6722b4 Deployed Oct 19, 2026 by vercel[bot]
Preview – yt-studio — af6722b4 Deployed Oct 19, 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