refactor import path to code-context #8
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: Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20.x' | |
| cache: 'pnpm' | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Setup npm auth | |
| run: | | |
| echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc | |
| - name: Build packages | |
| run: pnpm build | |
| - name: Publish core package to npm | |
| run: pnpm --filter @zilliz/code-context-core publish --access public --no-git-checks | |
| - name: Publish mcp package to npm | |
| run: pnpm --filter @zilliz/code-context-mcp publish --access public --no-git-checks | |
| - name: Publish vscode extension | |
| run: pnpm release:vscode | |
| env: | |
| VSCE_PAT: ${{ secrets.VSCE_PAT }} | |