alau.at

Back to Posts

Automated Testing and Deployment for SvelteKit + Cloudflare Workers

blogpost setup

Foreword

I recently got to clean up and update a legacy application at work. One requirement sounded deceptively simple: we needed to display the git tag of the most recent production deployment inside the app. It wasn’t trivial, though. First I had to understand how our GitHub Actions pipeline actually deploys, and then figure out how to inject the deploy tag into the build so the app can expose it at runtime. Since I’d never built a CI/CD pipeline myself, this turned into a deep dive into automated deployments, Git, and GitHub. In this post, I’ll share what I learned by walking through a simple GitHub Actions CI/CD pipeline and how to inject the deployment tag into the build.

© 2026 by ALau

Version: prod-2026-036