Skip to content

v2.0.0

Latest

Choose a tag to compare

@github-actions github-actions released this 11 Sep 11:43
🐛 fix(ci): 依赖可复现化 + TS 5.9 兼容,对齐官方模板 workflow

根因:pnpm-lock.yaml 被 .gitignore 挡在库外,CI 每次全新解析,
本次解析出 typescript@5.9.3 导致两处连锁问题:

- siyuan-skill.skd.ts putBytes:TS 5.9 起 BlobPart 要求
  ArrayBufferView<ArrayBuffer>,Uint8Array 默认泛型 ArrayBufferLike
  不可赋值 → 拷贝一份确定 ArrayBuffer 后端(兼容新旧 TS)
- gen-agent-ref.mjs 的 ts 工具来自安装的 typescript,而 AST 节点
  来自 ts-morph 内置 5.6.2 解析器,跨版本调用 getJSDocCommentsAndTags
  全部返回空 → 参考文档丢失全部 JSDoc。改从 ts-morph 取 ts,
  与解析器永远同版本

- typescript 升至 ^5.9.3 并提交 pnpm-lock.yaml(.gitignore 移除),
  CI 端 --frozen-lockfile 保证与本地一致
- workflow 对齐官方模板:checkout/setup-node v4、cache: pnpm、
  固定 pnpm 11.4.0、tag/package.json/plugin.json 三方版本校验