Skip to content

fix: CI workflow failures for YouTube API v3 worker deployment - #243

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

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

Conversation

@circleci-app

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

Copy link
Copy Markdown
Contributor

Summary

  • TypeScript check failure fixed: The deploy-worker CI job was running tsc with --lib ES2022 --skipLibCheck but no --types @cloudflare/workers-types, causing TS2304: Cannot find name 'Request'/'Response'/'URL'/'fetch' errors. Fixed by switching to --project tsconfig.json --noEmit, which already has "types": ["@cloudflare/workers-types"] configured.
  • package.json duplicate dependencies removed: Removed duplicate circletui entry and duplicate trigger-circleci-pipeline entry. Kept @circleci/circleci-config-sdk at ^0.8.0 to match the pnpm lockfile (avoids --frozen-lockfile failure in CI).

Changes

  • .circleci/config.yml — deploy-worker TypeScript verify step now uses --project tsconfig.json --noEmit
  • package.json — removed duplicate dependency entries, version aligned with lockfile

Test plan

  • pnpm install --frozen-lockfile passes
  • ./node_modules/.bin/tsc --project tsconfig.json --noEmit passes (0 errors)
  • ruff check . passes
  • cd functions && npm run lint -- --max-warnings 0 passes
  • cd functions && tsc --noEmit passes

https://app.circleci.com/agents/gh/ruhdevops/chat/725b9546-fee5-412d-a5f0-653e13e90fda

- Fix TypeScript verification in deploy-worker CI job: replace manual
  --lib ES2022 flags (missing @cloudflare/workers-types) with
  --project tsconfig.json --noEmit, which already has the correct
  workers-types configured. This resolves TS2304 errors for Request,
  Response, URL, and fetch globals.
- Fix package.json: remove duplicate circletui entry in dependencies
  and remove duplicate trigger-circleci-pipeline (kept in devDependencies).
  Keeps @circleci/circleci-config-sdk at ^0.8.0 to match pnpm lockfile
  and avoid frozen-lockfile failures.

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 16, 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 16, 2026 4:32pm UTC
yt-studio-production Error Error Oct 16, 2026 4:32pm 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 8ba10e3 Oct 16 2026, 04:32 PM

@netlify

netlify Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for ytr-studio failed.

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

@netlify

netlify Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for elegant-seahorse-d9d460 ready!

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

@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 8ba10e3 Oct 16 2026, 04:32 PM

This branch had an error being deployed

2 failed deployments
Preview – yt-studio-production — 8ba10e3c Deployed Oct 16, 2026 by vercel[bot]
Preview – yt-studio — 8ba10e3c Deployed Oct 16, 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