Skip to content

build: fix cdn uploads - #49

Merged
brettflorio merged 5 commits into
mainfrom
build/fix-cdn-uploads
Oct 8, 2026
Merged

brettflorio merged 5 commits into
mainfrom
build/fix-cdn-uploads

Conversation

@pheekus

@pheekus pheekus commented Jun 27, 2024 •

Copy link
Copy Markdown
Collaborator

The SDK has never been uploaded to the Foxy CDN. sdk@1, sdk@latest and every exact-version path return 404.

This is the same workflow as in Elements after the CI fix: Foxy/foxy-elements#273

Before merging: this repo needs a CLOUDFRONT_DISTRIBUTION_ID secret. Today it only exists as a repo secret on foxy-elements. Without it, the upload still works, but the invalidation step fails.

@pheekus pheekus added the bug Something isn't working label Jun 27, 2024
@pheekus
pheekus requested a review from brettflorio June 27, 2024 17:26
@pheekus pheekus self-assigned this Jun 27, 2024
samifiaz
samifiaz previously approved these changes Jun 28, 2024
brettflorio
brettflorio previously approved these changes Jun 28, 2024

@brettflorio brettflorio left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving per @samifiaz for testing.

Comment thread .github/workflows/release.yml Resolved
pheekus and others added 2 commits October 8, 2026 16:39
… the CDN

The CDN job read the version from `git describe` while running in
parallel with semantic-release, before the new tag existed. Every
release would have uploaded to the previous version's paths, the same
problem the foxy-elements Release workflow had.

The release job now outputs the tag semantic-release created. The CDN
job waits for it, passes it to the s3cdn action as LATEST_TAG_NAME, and
is skipped when no release happened. It also invalidates the CloudFront
cache after the upload, like foxy-elements does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pheekus
pheekus dismissed stale reviews from brettflorio and samifiaz via 9c3faea October 8, 2026 19:40
@pheekus
pheekus requested a review from brettflorio October 8, 2026 19:54
@brettflorio
brettflorio merged commit 190457c into main Oct 8, 2026
5 checks passed
@brettflorio
brettflorio deleted the build/fix-cdn-uploads branch October 8, 2026 20:28
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 1.19.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants