diff --git a/.github/workflows/deno-build.yml b/.github/workflows/deno-build.yml index 2daa925..e65de63 100644 --- a/.github/workflows/deno-build.yml +++ b/.github/workflows/deno-build.yml @@ -68,3 +68,8 @@ jobs: v ${{ env.TAG }} draft: false prerelease: false + + # 发布到 JSR + - name: Publish to JSR + id: publish_jsr + run: deno publish diff --git a/README.md b/README.md index 6d2a539..7f533b2 100644 --- a/README.md +++ b/README.md @@ -141,7 +141,7 @@ For convenience, STC can not only develop plugins in Deno, but also provides `@l ```ts // 引用模块 -import { start } from 'https://deno.land/x/stc@1.2.4/mod.ts' +import { start } from 'https://deno.land/x/stc@1.3.0/mod.ts' // 定义插件 const myPlugin: IPlugin = { diff --git a/deno.json b/deno.json index 8072ebd..b3dfdec 100644 --- a/deno.json +++ b/deno.json @@ -1,8 +1,10 @@ { - "version": "1.2.4", + "name": "@loongwoo/stc", + "version": "1.3.0", + "exports": "./mod.ts", "tasks": { "dev": "deno run -A --watch=src src/main.ts --url 'https://petstore3.swagger.io/api/v3/openapi.json' --outDir=out", - "version": "echo '1.2.4' > release/version", + "version": "echo '1.3.0' > release/version", "build:npm": "deno run -A src/npm/index.ts", "build:mac": "deno compile --output release/stc src/main.ts -A --target x86_64-apple-darwin", "build:mac-m": "deno compile --output release/stc-m src/main.ts -A --target aarch64-apple-darwin", diff --git a/src/npm/package.json b/src/npm/package.json index 5bb9534..331cc97 100644 --- a/src/npm/package.json +++ b/src/npm/package.json @@ -1,6 +1,6 @@ { "name": "@loongwoo/stc", - "version": "1.2.4", + "version": "1.3.0", "description": "Swagger、Apifox 文档转换为接口文件", "type": "module", "module": "esm/mod.js",