Skip to content

Commit

Permalink
feat: 发布到 jsr
Browse files Browse the repository at this point in the history
  • Loading branch information
long-woo committed Feb 24, 2024
1 parent 6188091 commit dc878b4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/deno-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,8 @@ jobs:
v ${{ env.TAG }}
draft: false
prerelease: false

# 发布到 JSR
- name: Publish to JSR
id: publish_jsr
run: deno publish
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
6 changes: 4 additions & 2 deletions deno.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/npm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@loongwoo/stc",
"version": "1.2.4",
"version": "1.3.0",
"description": "Swagger、Apifox 文档转换为接口文件",
"type": "module",
"module": "esm/mod.js",
Expand Down

0 comments on commit dc878b4

Please sign in to comment.