-
-
Notifications
You must be signed in to change notification settings - Fork 3
Add package to JSR #462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add package to JSR #462
Changes from 2 commits
2b4d801
8c005b3
2c8e88c
ce6c471
7c3c85e
bb8af90
31bad14
51c8b3b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| { | ||
| "name": "@trojs/openapi-server", | ||
| "version": "3.4.1", | ||
| "license": "MIT", | ||
| "exports": "./src/server.js", | ||
|
Comment on lines
+2
to
+5
|
||
| "compilerOptions": { | ||
| "lib": [ | ||
| "esnext" | ||
| ] | ||
| }, | ||
| "tasks": { | ||
| "check": "deno check src/server.js" | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,6 @@ | ||||||
| { | ||||||
| "name": "@trojs/openapi-server", | ||||||
| "version": "3.4.1", | ||||||
|
||||||
| "version": "3.4.1", | |
| "version": "3.5.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🌐 Web query:
JSR publish CLI authentication requirements GitHub OIDC💡 Result:
Summary — authentication requirements for using the JSR CLI to publish (including GitHub Actions / OIDC):
Local machine publish:
jsr publish(ordeno publish/npx jsr publish); the CLI opens your browser and you authenticate to your JSR account (OAuth flow). No CLI token required. [1]Publish from GitHub Actions (OIDC / CI):
permissions:
contents: read
id-token: write
npx jsr publish(ordeno publish) in the workflow; the publish uses the OIDC token from Actions (no stored secrets needed). [1][2]Sources:
Would you like me to show an example GitHub Actions workflow for JSR publish?
🌐 Web query:
JSR CLI jsr publish token authentication GitHub Actions💡 Result:
Short answer — two supported ways to authenticate
jsr publishin GitHub Actions:permissions: contents: readandid-token: write.env: JSR_TOKEN: ${{ secrets.JSR_TOKEN }}thennpx jsr publish(CLI will read it). This approach requires configuring the token scope and repo/package settings. [3][1]Notes / gotchas
Sources:
[1] JSR — Publishing from GitHub Actions (docs).
[2] JSR — API / Authentication (docs).
[3] Stainless / third‑party guide — using JSR personal access tokens.
[4] JSR — Troubleshooting (actorNotScopeMember).
🌐 Web query:
JSR package registry authentication methods npm CLI alternative💡 Result:
Summary — JSR authentication methods and alternatives to the npm CLI
Publishing from your workstation: the official jsr CLI (and deno publish) open your browser to authenticate and ask you to “Allow” the CLI to publish (browser-based OAuth flow). No manual token entry is required for local publish. [1][2]
CI / automated publishing: you can publish from GitHub Actions by linking the package to your GitHub repo; the workflow runs npx jsr publish and uses the GitHub integration (no repository secret required). [1]
Installing/consuming packages: JSR exposes an npm-compatible registry at https://npm.jsr.io; consumption is handled by configuring your package manager via an .npmrc entry (e.g.
@jsr:registry=https://npm.jsr.io). Public package installs need no extra credentials; private/enterprise setups can use private registries that upstream from JSR. [3][1]npm CLI alternative / helper tools:
@jsrat npm.jsr.io (useful alternative/integration for npm-based projects). [2]@jsrscope or auto-configure newer versions to read from npm.jsr.io. Private registries (e.g. Cloudsmith) can be configured to use JSR as an upstream. [3][4]Sources
Add OIDC permissions for JSR publish.
npx jsr publishrequires GitHub Actions OIDC by default. The workflow must include permissions to request an ID token:Additionally, ensure the JSR package is linked to this GitHub repository in JSR package settings (via jsr.io). Alternatively, if OIDC cannot be used, configure
JSR_TOKENenvironment variable with a personal access token instead.🤖 Prompt for AI Agents