mirror of
https://github.com/kunkunsh/kunkun-ext-serve.git
synced 2025-05-24 20:55:02 +00:00
chore: set up JSR package configuration and publish workflow
This commit is contained in:
parent
796640961e
commit
21b265749a
25
.github/workflows/jsr-publish.yml
vendored
Normal file
25
.github/workflows/jsr-publish.yml
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
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: Verify Package
|
||||||
|
run: bunx kksh verify --publish
|
||||||
|
- name: Publish package
|
||||||
|
run: bunx jsr publish
|
13
jsr.json
Normal file
13
jsr.json
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"name": "@kunkun/kunkun-ext-serve",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"license": "MIT",
|
||||||
|
"exports": "./mod.ts",
|
||||||
|
"imports": {
|
||||||
|
"@kunkun/api": "jsr:@kunkun/api@^0.0.52",
|
||||||
|
"@std/assert": "jsr:@std/assert@1"
|
||||||
|
},
|
||||||
|
"publish": {
|
||||||
|
"include": ["build", "README.md", "package.json", "mod.ts", "deno-src"]
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user