Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Publish

# Manually create a GitHub Release -> publishes `interfaze` to npm
# and `@interfaze/interfaze` to JSR.
on:
release:
types: [published]
workflow_dispatch:

permissions:
contents: read

jobs:
npm-publish:
name: Publish to npm
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # OIDC handshake for npm Trusted Publishing — no token needed.
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
# Trusted Publishing needs npm >= 11.5.1. Node 24 ships npm 11.x;
# Node 22's bundled npm 10.x fails the OIDC handshake with a misleading 404.
node-version: "24.x"
registry-url: "https://registry.npmjs.org"
- run: npm ci
- run: npm run build
- name: Publish to npm
# No --provenance: npm does not support provenance for private repos.
# Add it once interfaze-js is public.
run: npm publish --access public

jsr-publish:
name: Publish to JSR
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # OIDC auth for JSR — no token needed.
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22.x"
- run: npm ci
- name: Publish to JSR
run: npx jsr publish --allow-slow-types
8 changes: 8 additions & 0 deletions jsr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "@interfaze/interfaze",
"version": "1.0.0",
"exports": "./src/index.ts",
"publish": {
"include": ["src", "README.md", "LICENSE", "jsr.json"]
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "interfaze",
"version": "0.1.0",
"version": "1.0.0",
"description": "Official Interfaze SDK — a typed wrapper over the OpenAI SDK for the Interfaze API (deterministic task model).",
"license": "MIT",
"author": "Interfaze",
"homepage": "https://interfaze.ai",
"repository": { "type": "git", "url": "git+https://github.com/interfaze/interfaze-js.git" },
"repository": { "type": "git", "url": "git+https://github.com/InterfazeAI/interfaze-js.git" },
"keywords": ["interfaze", "openai", "ai", "ocr", "speech-to-text", "web-search", "sdk"],
"type": "module",
"main": "./dist/index.cjs",
Expand Down
Loading