ci: enable jsr

This commit is contained in:
Huakun Shen 2025-01-18 06:18:16 -05:00
parent 07ca35a253
commit be1246bf76
No known key found for this signature in database
6 changed files with 34 additions and 4426 deletions

23
.github/workflows/jsr-publish.yml vendored Normal file
View File

@ -0,0 +1,23 @@
name: JSR Publish
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun install
- name: Build
run: bun run build
- name: Publish package
run: npx jsr publish

View File

@ -22,13 +22,9 @@ jobs:
with:
node-version: 22
registry-url: https://registry.npmjs.org/
- uses: pnpm/action-setup@v2
with:
version: latest
- uses: oven-sh/setup-bun@v2
- run: pnpm install
- run: pnpm build
- run: bun install
- run: bun run build
- run: |
PACKAGE_NAME=$(jq -r '.name' package.json)
PACKAGE_VERSION=$(jq -r '.version' package.json)

BIN
bun.lockb Executable file

Binary file not shown.

9
jsr.json Normal file
View File

@ -0,0 +1,9 @@
{
"name": "@kunkun/kunkun-ext-jwt",
"version": "0.1.0",
"license": "MIT",
"exports": "./mod.ts",
"publish": {
"include": ["build", "README.md", "package.json", "mod.ts"]
}
}

0
mod.ts Normal file
View File

4420
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff