feat: versioned CDN auto-update for embedding sites#89
Merged
Conversation
- Add tracked cdn/ bundle (claudius.iife.js + claudius.css), served by jsDelivr at gh@<major>; the release workflow rebuilds and commits it onto the release PR so the tagged commit carries the served bytes, and uploads it to the GitHub Release. - Stamp the build version into the bundle as window.ClaudiusWidgetVersion. - Document the CDN embed snippet and CSP requirement in README and DEPLOY. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Deploying chat-widget with
|
| Latest commit: |
1f72de8
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://13f76c26.chat-widget-ejc.pages.dev |
| Branch Preview URL: | https://feat-cdn-auto-update.chat-widget-ejc.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Re-lands the CDN/auto-update work that was reviewed in #88. #88 merged into
chore/release-pleaseinstead ofmain(stacked-PR base didn't retarget because #87's branch wasn't deleted on merge), so this content never reachedmain. This is the same reviewed commit, cherry-picked onto currentmain.cdn/bundle served viahttps://cdn.jsdelivr.net/gh/PMDevSolutions/Claudius@1/cdn/claudius.iife.js(+.css).@1resolves the latestv1.x; patches/minors auto-flow, a new major never lands silently.cdn/onto the release PR (so the tag carries the served bytes) and uploads to the Release.window.ClaudiusWidgetVersionbuild stamp (verified1.1.0).cdn.jsdelivr.netCSP requirement.What happens on merge
This is a
feat:, so once onmainrelease-please will open a v1.2.0 release PR; merging that cuts the firstcdn/-bearing tag and makes the@1CDN URL live (the bootstrap step).Cleanup
After this merges, the stale
chore/release-pleaseandchore/cdn-auto-updatebranches can be deleted.