Repository navigation
ci: install @creative-int packages through the R2 npm cache - #5
Merged
Merged
Conversation
GitHub Packages data transfer is the org's only paid GitHub line ($12.50 in September). The npm-cache Worker keeps each tarball in R2 after its first download; access stays GitHub's (callers send the same NPM_TOKEN). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GitHub Packages data transfer is the org's only paid GitHub line ($12.50 in September). The npm-cache Worker keeps each tarball in R2 after its first download; access stays GitHub's (callers send the same NPM_TOKEN). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Installs
@creative-intpackages through config'snpm-cacheWorker, a pull-through cache in R2 (configmachine/README.md§ npm package cache in R2). GitHub Packages data transfer is the org's only paid GitHub line: 17.4 GB in August, 35 GB ($12.50) in September. After this, each tarball leaves GitHub once..npmrc: the@creative-intregistry ishttps://npm-cache.luke-nittmann.workers.dev, and the cache host gets the same${NPM_TOKEN}. Thenpm.pkg.github.comauth line stays, for the way back.pnpm-lock.yaml: the 8 pinned tarball URLs point at the cache. Integrity hashes are unchanged, so pnpm still verifies every byte.Access stays GitHub's: the Worker holds no credential, and it serves a tarball only after GitHub has accepted the caller's own token for that package. This PR's CI install (and a Vercel preview, where there is one) is the proof.
🤖 Generated with Claude Code