Repository navigation
fix: resolve CI workflow failures and add Cloudflare Worker deploy pipeline - #253
Open
circleci-app[bot] wants to merge 1 commit into
Open
circleci-app[bot] wants to merge 1 commit into
circleci-app[bot] wants to merge 1 commit into
Conversation
- Remove duplicate 'circletui' key from root package.json (caused pnpm install warning) - Fix functions/package.json: remove duplicate 'firebase-admin' key, remove misplaced 'lint' runtime dep - Fix app/wrangler.jsonc: replace placeholder <WORKER_NAME>/<COMPATIBILITY_DATE> with real values - Fix .circleci/config.yml node-checks job: add 'npm ci' in functions/ before lint/tsc (was failing because npm deps were never installed in that subdirectory) - Add worker-build job: validates TypeScript compilation of src/youtube-worker.ts - Add deploy-worker job: deploys YouTube API v3 Cloudflare Worker via wrangler (requires CLOUDFLARE_API_TOKEN secret) - Add 'deploy' workflow that runs worker-build + deploy-worker on main branch only AI-Generated: true
|
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
ytstudio | 5a1caaf | Oct 18 2026, 12:25 AM |
Contributor
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
ytstudio | 5a1caaf | Oct 18 2026, 12:25 AM |
❌ Deploy Preview for ytr-studio failed.
|
✅ Deploy Preview for elegant-seahorse-d9d460 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
package.json: Removed duplicatecircletuidependency key that caused a pnpm install warning on every CI run.functions/package.json: Removed duplicatefirebase-adminkey (kept^13.9.0); removed misplacedlintpackage from runtimedependencies.app/wrangler.jsonc: Replaced placeholder strings<WORKER_NAME>and<COMPATIBILITY_DATE>with real values (ytstudio-app,2025-01-01)..circleci/config.yml— three changes:node-checksjob: addednpm cistep insidefunctions/before running ESLint andtsc. The job was previously failing becausefunctions/has its ownpackage-lock.jsonbut its deps were never installed (only root pnpm deps were installed).worker-buildjob: installs root pnpm deps and runstsc --noEmitto validate thatsrc/youtube-worker.ts(the YouTube API v3 Cloudflare Worker) compiles cleanly.deploy-workerjob +deployworkflow: deploys the YouTube API v3 worker to Cloudflare Workers viawrangler deployon every push tomain. RequiresCLOUDFLARE_API_TOKENto be set as a CircleCI environment variable.The YouTube API v3 Worker
src/youtube-worker.tsalready implements full YouTube Data API v3 integration for channelUCrjJP_SHUeCmqpTSHJCXkdAwith endpoints:GET /or/healthGET /api/channelGET /api/videosGET /api/search?q=<query>All endpoints fall back to demo data when
YOUTUBE_API_KEYis not set.Test plan
pnpm installat root completes without duplicate-key warningsnpm ciinfunctions/installs deps cleanlynode-checksjob passes lint and tsc on the next CI runworker-buildjob passes TypeScript check for the workerCLOUDFLARE_API_TOKENin CircleCI project env vars to enabledeploy-workerhttps://app.circleci.com/agents/gh/ruhdevops/chat/9fd9419e-e1b5-4310-8b3e-45941eac5624