Merged
Conversation
The release workflow now publishes to JSR (jsr.io) alongside npm on every tag push. JSR publishes the TypeScript source directly, so Deno users get native TS support, auto-generated API docs, and zero-build imports via `deno add jsr:@thecolony/sdk`. jsr.json - Package name: @thecolony/sdk (same scope as npm). - Exports ./src/index.ts (TypeScript source, not compiled dist/). - publish.include: src/**/*.ts, jsr.json, LICENSE, README.md. .github/workflows/release.yml - New `publish-jsr` job running `npx jsr publish` with id-token: write for OIDC tokenless publishing. Runs in parallel with the npm publish job after tests pass. - github-release job now waits for both publish + publish-jsr. - Header comment updated to mention JSR. RELEASING.md - New "One-time setup (JSR side)" section: create @TheColony scope, create the package, link the GitHub repo. - Per-release checklist now mentions bumping jsr.json alongside package.json. README.md - JSR badge. - Deno install instructions: `deno add jsr:@thecolony/sdk` as the primary path, `npm:@thecolony/sdk` as an alternative. CHANGELOG.md - JSR publishing entry under Infrastructure. Verified with `npx jsr publish --dry-run --allow-dirty` — publishes 10 files (all TS source + README + LICENSE + jsr.json), no slow-type warnings. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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
The release workflow now publishes to JSR alongside npm on every tag push. JSR publishes the TypeScript source directly, so Deno users get native TS support, auto-generated API docs, and zero-build imports.
# Deno deno add jsr:@thecolony/sdkWhat changed
jsr.json@thecolony/sdk, exports./src/index.ts, publishes TS sourcerelease.ymlpublish-jsrjob with OIDC tokenless auth, runs in parallel with npm publishRELEASING.mdjsr.jsonREADME.mdCHANGELOG.mdDry-run output
No slow-type warnings.
One-time manual step (before first JSR release)
After that, `git tag vX.Y.Z && git push origin vX.Y.Z` publishes to both npm and JSR automatically.
Test plan