Repository navigation
feat: YouTube API v3 worker deploy + CI workflow fixes - #325
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 CircleCI job that deploys src/youtube-worker.ts to Cloudflare Workers (ytstudio) using CLOUDFLARE_API_TOKEN - Add deploy workflow that gates deploy-worker on passing python-checks and node-checks (main branch only) - Fix CI node-checks: install functions deps separately, use local tsc binary - Fix app/wrangler.jsonc: set correct worker name and compatibility_date - Fix functions/package.json: resolve duplicate firebase-admin, downgrade typescript to ^5.5.0, correct node engine to 20 - Fix functions/.eslintrc.js: expand minified config to readable format - Fix package.json: remove duplicate trigger-circleci-pipeline from devDependencies and duplicate circletui from dependencies - Reformat Python fix scripts (ruff-compliant) - Trim functions/package-lock.json to only required packages 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 | a562267 | Nov 04 2026, 02:31 AM |
Contributor
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
ytstudio | a562267 | Nov 04 2026, 02:31 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
src/youtube-worker.ts): implements/api/channel,/api/videos, and/api/searchendpoints against the Cloudflare Workers runtime. Falls back to demo data whenYOUTUBE_API_KEYis not set.deployworkflow: gates adeploy-workerjob onpython-checks+node-checkspassing, then deploys the worker viapnpm run deploy:worker→wrangler deploy. Only runs on themainbranch.validateworkflow: unchanged — runspython-checksandnode-checkson every push.Fixes
.circleci/config.ymldeploy-workerjob anddeployworkflow; fixednode-checksto install functions deps separately and use localtscbinaryapp/wrangler.jsoncytstudio-app, setcompatibility_date: 2025-01-01functions/package.jsonfirebase-admin, changed node engine from24→20, pinnedtypescriptto^5.5.0functions/.eslintrc.jsfunctions/package-lock.jsonfunctions/package.jsonpackage.jsontrigger-circleci-pipelinefromdevDependenciesand duplicatecircletuifromdependenciesfix_app.py,fix_deps.py,fix_index.pyLocal verification
All CI steps passed locally:
ruff check .→ cleanruff format --check .→ 59 files already formattedmypy fix_*.py→ no issuespnpm install --frozen-lockfile→ lockfile up to datefunctionseslint + tsc → both exit 0https://app.circleci.com/agents/gh/ruhdevops/chat/a17e5853-f039-4c80-919c-061bb3123c99