Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save pmutua/1c8075803c32c3230e94f63b2a3b4b9f to your computer and use it in GitHub Desktop.

Select an option

Save pmutua/1c8075803c32c3230e94f63b2a3b4b9f to your computer and use it in GitHub Desktop.
Arifa CI/CD and Mobile Fixes
title Arifa CI/CD and Mobile Fixes
date 2026-05-26
author pmutua
tags
react-native
expo
astro
cloudflare-workers
hono
d1
drizzle
kv
r2
rag
workers-ai
vectorize
turborepo
typescript
commit b053eea
type dev-diary

The Hook

I've made several changes to the Arifa project, focusing on CI/CD pipeline improvements and fixing mobile-related issues. These updates aim to enhance the overall development and deployment process, ensuring a smoother experience for users.

Context

The Arifa project is an AI-powered news aggregation, analysis, and distribution platform. It utilizes a range of technologies, including React Native, Expo, Astro, Cloudflare Workers, Hono, D1, Drizzle, KV, R2, and TypeScript. The project's complexity necessitates a robust CI/CD pipeline to manage deployments efficiently.

What Changed

The recent commits address several key areas:

  • CI/CD Pipeline: Updates to the .github/workflows/deploy-telegram.yml file to use wrangler@4 and add the Clerk key to the build process. This change ensures compatibility and security in the deployment process.
  • Mobile Fixes: Resolved typecheck errors in several screen files, improving the stability and performance of the mobile application.
  • Telegram Deploy: Modified the deploy-telegram.yml workflow to use pnpm dlx for wrangler, enhancing the efficiency of the deployment process.
  • Code Formatting: Formatted the expo-env.d.ts file for better readability and maintainability.

Code Snippets

// .github/workflows/deploy-telegram.yml
-        run: npx wrangler pages deploy telegram/dist --project-name arifa-telegram --branch ${{ github.ref_name }} --commit-dirty=true
+        run: npx wrangler@4 pages deploy telegram/dist --project-name arifa-telegram --branch ${{ github.ref_name }} --commit-dirty=true
// .github/workflows/deploy-telegram.yml (after using pnpm dlx)
-        run: npx wrangler@4 pages deploy telegram/dist --project-name arifa-telegram --branch ${{ github.ref_name }} --commit-dirty=true
+        run: pnpm dlx wrangler@4 pages deploy telegram/dist --project-name arifa-telegram --branch ${{ github.ref_name }} --commit-dirty=true

Challenges

One of the challenges encountered was ensuring the compatibility of the CI/CD pipeline with the latest versions of the tools and libraries used in the project. This required careful testing and validation of each change to prevent disruptions to the deployment process.

What I Learned

Through this process, I learned the importance of maintaining up-to-date dependencies and tools in the CI/CD pipeline. Regularly reviewing and updating these components helps prevent compatibility issues and ensures a smoother development and deployment experience.

What's Next

The next steps involve continuing to refine the CI/CD pipeline, focusing on automation and efficiency. Additionally, addressing any remaining mobile-related issues will be a priority to ensure a high-quality user experience across all platforms.

sequenceDiagram
    participant Developer as "Developer"
    participant CI/CD as "CI/CD Pipeline"
    participant Telegram as "Telegram"
    participant Mobile as "Mobile App"

    Note over Developer,CI/CD: Update .github/workflows/deploy-telegram.yml
    Developer->>CI/CD: Trigger deployment
    CI/CD->>Telegram: Deploy to Telegram
    CI/CD->>Mobile: Update mobile configuration
    Mobile->>Developer: Reflect changes
    Note over Developer,CI/CD: Use pnpm dlx for wrangler
    Developer->>CI/CD: Update workflow
    CI/CD->>Telegram: Deploy with updated workflow
Loading

This sequence diagram illustrates the interaction between the developer, the CI/CD pipeline, Telegram, and the mobile app during the deployment process, highlighting the updates made to the pipeline and their effects on the deployment to Telegram and the configuration of the mobile app.


Git Provenance

All commits are SSH-signed (Ed25519) and show a Verified badge on GitHub. The source repository is private — commit URLs are not publicly accessible.

Commit Date Message Verified
7a8361c 2026-05-26 00:33 +03:00 fix(ci): fix telegram deploy - use wrangler@4 and add Clerk key to build
d96cd33 2026-05-26 00:51 +03:00 fix(mobile): resolve typecheck errors in 9 screen files
4e38092 2026-05-26 00:55 +03:00 fix(ci): use pnpm dlx for wrangler in telegram deploy
784ff2a 2026-05-26 00:57 +03:00 style(mobile): format expo-env.d.ts
b053eea 2026-05-26 01:07 +03:00 Merge pull request #83 from pmutua/release/0.11.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment