fix(document-api): improve AI tool definitions, add block refs, and f… #84
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
| # Auto-releases on push to main (@next channel) | |
| # For stable (@latest): cherry-pick commits to stable branch, then manually dispatch this workflow | |
| name: 📦 Release vscode-ext | |
| on: | |
| push: | |
| branches: main | |
| paths: | |
| - 'apps/vscode-ext/**' | |
| - 'packages/superdoc/**' | |
| - 'packages/layout-engine/**' | |
| - 'packages/super-editor/**' | |
| - 'packages/ai/**' | |
| - 'packages/word-layout/**' | |
| - 'packages/preset-geometry/**' | |
| - 'pnpm-workspace.yaml' | |
| - '!**/*.md' | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| packages: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Generate token | |
| id: generate_token | |
| uses: actions/create-github-app-token@v2 | |
| with: | |
| app-id: ${{ secrets.APP_ID }} | |
| private-key: ${{ secrets.APP_PRIVATE_KEY }} | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| token: ${{ steps.generate_token.outputs.token }} | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: .nvmrc | |
| cache: pnpm | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Build superdoc | |
| run: pnpm run build | |
| - name: Test vscode-ext | |
| run: pnpm run test | |
| working-directory: apps/vscode-ext | |
| - name: Build vscode-ext | |
| run: pnpm run build | |
| working-directory: apps/vscode-ext | |
| - name: Release | |
| run: pnpx semantic-release | |
| working-directory: apps/vscode-ext | |
| env: | |
| GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} | |
| VSCE_PAT: ${{ secrets.VSCE_PAT }} | |
| LINEAR_TOKEN: ${{ secrets.LINEAR_TOKEN }} | |
| ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} |