ci: add jsr publish

This commit is contained in:
Huakun Shen 2025-01-18 06:28:49 -05:00
parent ef40a86ac9
commit cd97197159
No known key found for this signature in database
4 changed files with 34 additions and 1 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

9
jsr.json Normal file
View File

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

0
mod.ts Normal file
View File

View File

@ -1,7 +1,8 @@
{ {
"$schema": "https://schema.kunkun.sh", "$schema": "https://schema.kunkun.sh",
"name": "kunkun-ext-system-info", "name": "kunkun-ext-system-info",
"version": "0.0.6", "license": "MIT",
"version": "0.1.0",
"repository": "https://github.com/kunkunsh/kunkun-ext-system-info", "repository": "https://github.com/kunkunsh/kunkun-ext-system-info",
"kunkun": { "kunkun": {
"name": "System Info", "name": "System Info",