Repository navigation
feat: YouTube API v3 worker deployment + fix CI workflow failures - #308
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
- Add deploy-worker job to .circleci/config.yml that deploys src/youtube-worker.ts to Cloudflare Workers (ytstudio) on main branch pushes - Fix node-checks job: add `cd functions && npm install` step so ESLint and tsc can find their node_modules before running - Fix functions/package.json: remove duplicate firebase-admin dependency (kept ^13.9.0, removed ^10.3.0) and downgrade typescript to ^5.5.0 (stable) - Fix root package.json: remove duplicate circletui and trigger-circleci-pipeline from dependencies (trigger-circleci-pipeline remains in devDependencies) - Fix app/wrangler.jsonc: replace <WORKER_NAME> and <COMPATIBILITY_DATE> placeholders with ytstudio-app and 2025-01-01 The YouTube API v3 Cloudflare Worker (src/youtube-worker.ts) exposes: GET / - health check with endpoint listing GET /api/channel - channel statistics for UCrjJP_SHUeCmqpTSHJCXkdA GET /api/videos - paginated video listing from uploads playlist GET /api/search - video search within the channel Falls back to demo data when YOUTUBE_API_KEY is not configured. AI-Generated: true
|
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
❌ Deploy Preview for elegant-seahorse-d9d460 failed.
|
Contributor
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
ytstudio | 5927e57 | Oct 31 2026, 01:25 AM |
❌ Deploy Preview for ytr-studio failed.
|
Contributor
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
ytstudio | 5927e57 | Oct 31 2026, 01:25 AM |
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
deploy-workerCI job in.circleci/config.ymlthat runswrangler deploy src/youtube-worker.tson every push tomain. The worker (ytstudio) exposes/api/channel,/api/videos, and/api/searchbacked by YouTube Data API v3, falling back to demo data whenYOUTUBE_API_KEYis absent.node-checksCI failure — the job was runningnpm run lintandtscinsidefunctions/without first installing its dependencies. Addedcd functions && npm installbefore those steps.functions/package.jsonduplicate dependency —firebase-adminappeared twice (^13.9.0and^10.3.0). Kept^13.9.0. Also pinned TypeScript to^5.5.0(stable release;^6.0.0does not exist).package.jsonduplicate entries —circletuiandtrigger-circleci-pipelinewere duplicated independencies. Removed extras;trigger-circleci-pipelineremains indevDependencies.app/wrangler.jsoncplaceholders — replaced<WORKER_NAME>→ytstudio-appand<COMPATIBILITY_DATE>→2025-01-01.Required secrets for worker deployment
Add these in CircleCI project environment variables to enable live deploys:
CLOUDFLARE_API_TOKEN— Cloudflare API token with Workers:Edit permissionCLOUDFLARE_ACCOUNT_ID— your Cloudflare account IDhttps://app.circleci.com/agents/gh/ruhdevops/chat/6e9485e9-38b2-4226-9e96-770a195326c0