Skip to content

ci(audience): add CDN deploy workflow (SDK-130)#2863

Open
ImmutableJeffrey wants to merge 1 commit intomainfrom
ci/audience-cdn-deploy
Open

ci(audience): add CDN deploy workflow (SDK-130)#2863
ImmutableJeffrey wants to merge 1 commit intomainfrom
ci/audience-cdn-deploy

Conversation

@ImmutableJeffrey
Copy link
Copy Markdown
Contributor

@ImmutableJeffrey ImmutableJeffrey commented Apr 16, 2026

Summary

Adds a GitHub Actions workflow that deploys the @imtbl/audience CDN bundle on pushes to main.

  • Triggers on changes to packages/audience/sdk/** or packages/audience/core/**
  • Builds the SDK, uploads dist/cdn/imtbl-audience.global.js to s3://audience-sdk-prod/audience/v1/imtbl.js
  • Invalidates the CloudFront cache for the uploaded path
  • Uses the same IAM role and CloudFront distribution as deploy-pixel-cdn.yaml
  • Supports manual trigger via workflow_dispatch

Depends on immutable/platform-infrastructure#5204 (S3 bucket and CloudFront origin must exist first).

Linear: SDK-130

Uploads the audience SDK bundle to S3 and invalidates CloudFront on
pushes to main that touch packages/audience/sdk/ or core/.
Mirrors deploy-pixel-cdn.yaml — same IAM role, same distribution,
different bucket (audience-sdk-prod) and key path (audience/v1/).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@nx-cloud
Copy link
Copy Markdown

nx-cloud bot commented Apr 16, 2026

View your CI Pipeline Execution ↗ for commit 2293c66

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-16 06:46:12 UTC

@ImmutableJeffrey ImmutableJeffrey changed the title ci(audience): add CDN deploy workflow (SDK-115) ci(audience): add CDN deploy workflow (SDK-130) Apr 16, 2026
@ImmutableJeffrey ImmutableJeffrey marked this pull request as ready for review April 16, 2026 08:27
@ImmutableJeffrey ImmutableJeffrey requested review from a team as code owners April 16, 2026 08:27
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.

1 participant