Repository navigation
fix: resolve CI workflow failures and add Cloudflare Worker deploy - #324
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
- Fix functions/package.json: remove duplicate firebase-admin key,
remove spurious lint runtime dep, downgrade typescript from non-existent
^6.0.0 to ^5.5.0, and correct node engine from 24 to 20
- Generate app/worker-configuration.d.ts via wrangler types so tsconfig
include reference resolves correctly
- Update .circleci/config.yml:
- Add missing worker-checks job definition (was referenced in workflow
but definition was absent)
- Add worker-deploy job that runs wrangler deploy on main branch with
CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID env vars
- Fix node-checks: install functions deps before lint/tsc, use
node_modules/.bin/tsc instead of npx tsc, replace missing
npx quality-gc with pnpm run enhance fallback
- Wire worker-checks and worker-deploy into validate workflow
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 | 54dfc9b | Nov 04 2026, 01:37 AM |
Contributor
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
ytstudio | 54dfc9b | Nov 04 2026, 01:37 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
functions/package.json: removed duplicatefirebase-adminkey (kept^13.9.0), removed spuriouslintruntime dependency, correctedtypescriptfrom non-existent^6.0.0→^5.5.0, fixednodeengine from24→20app/worker-configuration.d.ts: file was referenced inapp/tsconfig.json'sincludebut was absent; generated viawrangler types.circleci/config.yml:worker-checksjob definition (was listed invalidateworkflow but the job was never defined — this caused CI to fail on every run)worker-deployjob: runswrangler deployonmainbranch usingCLOUDFLARE_API_TOKENandCLOUDFLARE_ACCOUNT_IDsecretsnode-checks: installfunctions/deps before running lint/tsc, usenode_modules/.bin/tscinstead of barenpx tsc, replaced brokennpx quality-gc runwithpnpm run enhancefallbackworker-checksandworker-deployinto thevalidateworkflowWorker Endpoints (YouTube API v3)
The deployed Cloudflare Worker (
ytstudio) exposes:GET /orGET /health— health checkGET /api/channel— channel info (usesYOUTUBE_API_KEY+CHANNEL_IDenv vars)GET /api/videos— paginated video list; falls back to demo data when no key is setGET /api/search?q=<query>— search within the channelTest plan
npm test -- --runinapp/)tsc --noEmitinapp/)functions/npm install completes without errors (no duplicate key, valid TS version)validateworkflow:python-checks,node-checks,worker-checksall greenworker-deployjob deploys to Cloudflare onmainmerge (requiresCLOUDFLARE_API_TOKENandCLOUDFLARE_ACCOUNT_IDCI env vars)https://app.circleci.com/agents/gh/ruhdevops/chat/55a2194e-dc4b-47b0-85ec-84b0b3b63199