Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

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

Select an option

Save pmutua/ce779b26b56823e4ef26ded0f894491d to your computer and use it in GitHub Desktop.
Arifa CI/CD Updates and Corrections
title Arifa CI/CD Updates and Corrections
date 2026-05-02
author pmutua
tags
cloudflare-workers
ci-cd
wrangler
commit 1de6b05
type dev-diary

The Hook

I've made several updates to the Arifa project, focusing on CI/CD pipeline improvements and corrections. Notably, I replaced wrangler-action with npx wrangler in the Telegram deploy workflow and corrected the changeset package name.

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, and Cloudflare Workers. The project's CI/CD pipelines are crucial for ensuring smooth deployment and updates.

What Changed

The primary change involves replacing wrangler-action with npx wrangler in the .github/workflows/deploy-telegram.yml file. This update affects how deployments to Cloudflare Pages are handled. Specifically, the uses directive for cloudflare/wrangler-action@v3 has been replaced with a run command using npx wrangler for deploying to Cloudflare Pages.

- name: Deploy to Cloudflare Pages
  env:
    CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
    CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
  run: npx wrangler pages deploy telegram/dist --project-name arifa-telegram --branch ${{ github.ref_name }} --commit-dirty=true

Additionally, I corrected the changeset package name from arifa to @news-intel/frontend in the .changeset/web-intelligence-pages.md file.

- 'arifa': minor
+ '@news-intel/frontend': minor

Challenges

The update from wrangler-action to npx wrangler was necessary to align with the latest deployment best practices for Cloudflare Pages. This change ensures that the project's CI/CD pipeline remains efficient and compatible with the evolving Cloudflare ecosystem.

What I Learned

  • The importance of keeping CI/CD pipelines up-to-date with the latest tools and best practices.
  • How to migrate from wrangler-action to npx wrangler for Cloudflare Pages deployments.
  • The need for accurate package naming in changesets for proper versioning and change tracking.

What's Next

These updates pave the way for more streamlined and reliable deployments of the Arifa project. With the corrected package name and the improved deployment process, the project is better positioned for future development and scaling.

sequenceDiagram
    participant GitHub as GitHub Actions
    participant Cloudflare as Cloudflare Workers
    participant Wrangler as npx Wrangler
    participant Telegram as Telegram Deployment

    GitHub->>Wrangler: Trigger deployment
    Wrangler->>Cloudflare: Deploy to Cloudflare Pages
    Cloudflare->>Telegram: Update Telegram deployment
    Telegram->>GitHub: Confirm deployment success
Loading

This sequence diagram illustrates the updated deployment workflow, showcasing how GitHub Actions trigger the deployment using npx wrangler, which then interacts with Cloudflare Workers to update the Telegram deployment.


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
2705078 2026-05-01 23:51 +03:00 fix(ci): replace wrangler-action with npx wrangler in telegram deploy
46e90c0 2026-05-01 23:53 +03:00 Merge branch 'release/0.10.1'
1de6b05 2026-05-01 23:57 +03:00 fix(root): correct changeset package name from arifa to @news-intel/frontend
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment