chore(release): bump to 0.5.1 + changelog #7
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish ProactiveAgent Packages | |
| # 通过 npm trusted publishing(OIDC)发布,无需 2FA/token | |
| # 触发:推送 v* 标签(如 v0.1.0) | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| permissions: | |
| contents: read | |
| id-token: write # OIDC token:npm trusted publishing 需要 | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Run tests (gate) | |
| run: bun test | |
| - name: Typecheck (gate) | |
| run: | | |
| cd packages/proactive-core && bunx tsc --noEmit | |
| cd ../proactive-mcp && bunx tsc --noEmit | |
| - name: Build bundles | |
| run: bash scripts/publish-proactive.sh --build-only | |
| - name: Check trusted publisher ready | |
| id: check | |
| run: | | |
| if npm view @proactive-agent/core version >/dev/null 2>&1; then | |
| echo "ready=true" | |
| else | |
| echo "ready=false" | |
| fi | |
| - name: Publish @proactive-agent/core | |
| if: steps.check.outputs.ready == 'true' | |
| working-directory: dist-publish/core | |
| run: npm publish --provenance --access public | |
| - name: Publish @proactive-agent/mcp | |
| if: steps.check.outputs.ready == 'true' | |
| working-directory: dist-publish/mcp | |
| run: npm publish --provenance --access public | |
| - name: Verify published | |
| if: steps.check.outputs.ready == 'true' | |
| run: | | |
| npm view @proactive-agent/core version | |
| npm view @proactive-agent/mcp version |