Skip to content

ci(pixel): add GitHub Action to deploy pixel bundle to CDN#2844

Merged
bkbooth merged 2 commits into
mainfrom
benbooth/sdk-69-pixel-cdn-deploy-action
Apr 10, 2026
Merged

ci(pixel): add GitHub Action to deploy pixel bundle to CDN#2844
bkbooth merged 2 commits into
mainfrom
benbooth/sdk-69-pixel-cdn-deploy-action

Conversation

@bkbooth

@bkbooth bkbooth commented Apr 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds a GitHub Action workflow that builds the pixel bundle (imtbl.js) and deploys it to S3 (audience-pixel-prod/pixel/v1/imtbl.js) with CloudFront cache invalidation
  • Triggers on merge to main when packages/audience/pixel/** or packages/audience/core/** change, plus manual workflow_dispatch
  • Infrastructure (S3, CloudFront at cdn.immutable.com, response headers policy) set up in platform-infrastructure#5168

Details

  • Uses existing AWS_IMMUTABLE_PROD_ADMIN_ROLE OIDC role for AWS access
  • New secret CF_PIXEL_PROD_DISTRIBUTION_ID added for CloudFront invalidation
  • Concurrency group prevents parallel deploys
  • Verifies bundle exists + logs size before upload
  • Verifies S3 object metadata (content-type, cache-control) after upload

Related

Test plan

  • Trigger workflow manually via workflow_dispatch to validate end-to-end
  • Confirm bundle is uploaded to S3 with correct headers
  • Confirm CloudFront cache invalidation succeeds
  • Confirm pixel loads correctly from CDN URL

🤖 Generated with Claude Code

Deploys imtbl.js to S3 (audience-pixel-prod) and invalidates CloudFront
on merge to main when pixel or core packages change. Supports manual
trigger via workflow_dispatch.

Infrastructure (S3 bucket, CloudFront distribution, response headers)
was set up in immutable/platform-infrastructure#5168.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@bkbooth bkbooth requested review from a team as code owners April 10, 2026 01:07
@nx-cloud

nx-cloud Bot commented Apr 10, 2026

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit c3d1ccf

Command Status Duration Result
nx run-many -p @imtbl/sdk,@imtbl/checkout-widge... ✅ Succeeded 2s View ↗
nx affected -t build,lint,test ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2026-04-10 02:07:31 UTC

nattb8
nattb8 previously approved these changes Apr 10, 2026
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@bkbooth bkbooth added this pull request to the merge queue Apr 10, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 10, 2026
@bkbooth bkbooth added this pull request to the merge queue Apr 10, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 10, 2026
@bkbooth bkbooth added this pull request to the merge queue Apr 10, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 10, 2026
@bkbooth bkbooth added this pull request to the merge queue Apr 10, 2026
Merged via the queue into main with commit 1422d57 Apr 10, 2026
7 checks passed
@bkbooth bkbooth deleted the benbooth/sdk-69-pixel-cdn-deploy-action branch April 10, 2026 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants