From 3f88f03c3eaea82b22677fcc0822f27249eee12c Mon Sep 17 00:00:00 2001 From: consistent-k Date: Sun, 7 Jun 2026 23:31:57 +0800 Subject: [PATCH 1/3] =?UTF-8?q?fix:=20=E5=8E=BB=E6=8E=89=20release-please?= =?UTF-8?q?=20component=20=E5=89=8D=E7=BC=80=EF=BC=8C=E4=BF=AE=E5=A4=8D=20?= =?UTF-8?q?tag=20=E6=A0=BC=E5=BC=8F=E4=B8=8D=E5=8C=B9=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - config.json:移除 component: oa,使 tag 格式与现有 v1.0.5 对齐 Co-Authored-By: Claude Opus 4.7 --- .release-please/config.json | 1 - 1 file changed, 1 deletion(-) diff --git a/.release-please/config.json b/.release-please/config.json index 6a955f6..e1d4e66 100644 --- a/.release-please/config.json +++ b/.release-please/config.json @@ -10,7 +10,6 @@ "changelog-header": "# Changelog\n\n本文档记录 OpenAgent 的所有重要变更。", "packages": { ".": { - "component": "oa", "extra-files": [ "packages/core/package.json", "packages/agents/package.json", From 2e4bbe504a4f186ca142d88d4b0e2523fe1f72e2 Mon Sep 17 00:00:00 2001 From: consistent-k Date: Sun, 7 Jun 2026 23:35:08 +0800 Subject: [PATCH 2/3] =?UTF-8?q?ci:=20=E7=A7=BB=E9=99=A4=20dependency-revie?= =?UTF-8?q?w=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - dependency-review.yml:依赖图未启用,该检查无法运行 Co-Authored-By: Claude Opus 4.7 --- .github/workflows/dependency-review.yml | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 .github/workflows/dependency-review.yml diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml deleted file mode 100644 index ae8b083..0000000 --- a/.github/workflows/dependency-review.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Dependency Review - -on: - pull_request: - branches: [main] - -jobs: - review: - runs-on: ubuntu-latest - - permissions: - contents: read - pull-requests: write - - steps: - - name: 检查代码 - uses: actions/checkout@v6 - - - name: 依赖变更审查 - uses: actions/dependency-review-action@v4 - with: - fail-on-severity: high - comment-summary-in-pr: always From 76ffc2f87de79718a9bc121465a283bc31e4297b Mon Sep 17 00:00:00 2001 From: consistent-k Date: Sun, 7 Jun 2026 23:39:53 +0800 Subject: [PATCH 3/3] =?UTF-8?q?ci:=20=E6=8B=86=E5=88=86=20publish=20?= =?UTF-8?q?=E4=B8=BA=E7=8B=AC=E7=AB=8B=20workflow=EF=BC=8C=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=20Release=20=E4=BA=8B=E4=BB=B6=E8=A7=A6=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - release-please.yml:移除 publish job - publish.yml:新建,监听 release published 事件触发发布 Co-Authored-By: Claude Opus 4.7 --- .github/workflows/publish.yml | 27 +++++++++++++++++++++++++++ .github/workflows/release-please.yml | 22 ---------------------- 2 files changed, 27 insertions(+), 22 deletions(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..c22a028 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,27 @@ +name: Publish to npm + +on: + release: + types: [published] + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + + - uses: pnpm/action-setup@v6 + + - uses: actions/setup-node@v6 + with: + node-version: 22 + cache: pnpm + registry-url: https://registry.npmjs.org + + - run: pnpm install --frozen-lockfile + + - run: pnpm build + + - run: pnpm -r publish --access public --no-git-checks + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index eff8229..09e0185 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -20,25 +20,3 @@ jobs: config-file: .release-please/config.json manifest-file: .release-please/manifest.json - publish: - needs: release-please - if: ${{ needs.release-please.outputs.releases_created }} - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v6 - - - uses: pnpm/action-setup@v6 - - - uses: actions/setup-node@v6 - with: - node-version: 22 - cache: pnpm - registry-url: https://registry.npmjs.org - - - run: pnpm install --frozen-lockfile - - - run: pnpm build - - - run: pnpm -r publish --access public --no-git-checks - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}