Skip to content

fix: resolve CI workflow failures and add YouTube API worker deployment - #255

Open
circleci-app[bot] wants to merge 1 commit into
mainfrom
chunk/fix-workflow-failures-youtube-worker-deploy
Open

circleci-app[bot] wants to merge 1 commit into
mainfrom
chunk/fix-workflow-failures-youtube-worker-deploy

Conversation

@circleci-app

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

Copy link
Copy Markdown
Contributor

Summary

  • Fix functions/.eslintrc.js — The file was minified to a single line, causing 40 ESLint errors (line length, spacing, indentation). Expanded to properly formatted multi-line config.
  • Fix functions/package.json — Two dependency bugs: (1) duplicate firebase-admin key where the last value (^10.3.0) overrode the first and was incompatible with firebase-functions@^7.0.0 which requires ^11+; (2) typescript: ^6.0.0 which doesn't exist (latest stable is 5.x). Fixed to firebase-admin: ^13.9.0 and typescript: ^5.1.6.
  • Fix node-checks CI job — Added an explicit npm install --legacy-peer-deps step inside functions/ before running lint/tsc, and replaced npx tsc with ./node_modules/.bin/tsc (npx is not permitted in this CI environment).
  • Add deploy-worker CI job — New job that type-checks then deploys the YouTube API v3 Cloudflare Worker (src/youtube-worker.ts) on every merge to main. Requires CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID to be set as CircleCI environment variables.

Workflow failures fixed

Job Root cause Fix
node-checks → lint .eslintrc.js minified (40 errors) Expanded to formatted multi-line config
node-checks → install Duplicate firebase-admin dep conflict Kept only ^13.9.0
node-checks → tsc typescript@^6.0.0 doesn't exist Downgraded to ^5.1.6
node-checks → tsc npx not allowed in CI Use ./node_modules/.bin/tsc

Test plan

  • npm run lint -- --max-warnings 0 passes with 0 errors locally
  • ./node_modules/.bin/tsc --noEmit passes with 0 errors locally
  • CircleCI validate workflow passes after merge
  • CircleCI deploy workflow deploys worker to Cloudflare on main (requires CLOUDFLARE_API_TOKEN + CLOUDFLARE_ACCOUNT_ID secrets to be configured in CircleCI project settings)

https://app.circleci.com/agents/gh/ruhdevops/chat/8c9d5cb7-8414-444a-9507-63580fbd1938

- Fix functions/.eslintrc.js: expand minified config to properly
  formatted multi-line version (was causing 40 lint errors)
- Fix functions/package.json: remove duplicate firebase-admin key
  (kept ^13.9.0, compatible with firebase-functions@7); downgrade
  typescript from nonexistent ^6.0.0 to ^5.1.6
- Fix node-checks CI job: add explicit functions npm install step
  and use installed tsc binary instead of npx
- Add deploy-worker CI job: type-checks then deploys the YouTube
  API v3 Cloudflare Worker (src/youtube-worker.ts) on main branch
  merges using CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID secrets

AI-Generated: true
@vercel

vercel Bot commented Oct 18, 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 18, 2026 2:25am UTC
yt-studio-production Error Error Oct 18, 2026 2:25am 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 28cf02e Oct 18 2026, 02: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 28cf02e Oct 18 2026, 02:24 AM

@netlify

netlify Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for ytr-studio failed.

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

@netlify

netlify Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for elegant-seahorse-d9d460 ready!

Name Link
🔨 Latest commit 28cf02e
🔍 Latest deploy log https://app.netlify.com/projects/elegant-seahorse-d9d460/deploys/6ad42deee3043b6e1482c8e1
😎 Deploy Preview https://deploy-preview-255--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 — 28cf02ea Deployed Oct 18, 2026 by vercel[bot]
Preview – yt-studio-production — 28cf02ea Deployed Oct 18, 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