v2.4.0 🌈 #27
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: codingbuddy-release | |
| on: | |
| release: | |
| types: [published] | |
| env: | |
| NODE_OPTIONS: --max_old_space_size=4096 | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Setup node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: '24' | |
| - name: Install dependencies | |
| run: yarn install --immutable | |
| - name: Build mcp-server | |
| run: yarn workspace codingbuddy build | |
| - name: Publish rules | |
| working-directory: packages/rules | |
| run: | | |
| TAG_NAME="${GITHUB_REF#refs/tags/}" | |
| TAG_NAME="${TAG_NAME#v}" | |
| echo "Publishing codingbuddy-rules version: $TAG_NAME" | |
| cat <<< "$( jq --arg v "$TAG_NAME" '.version = $v' package.json )" > package.json | |
| yarn npm publish | |
| env: | |
| YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| GITHUB_REF: ${{ github.ref }} | |
| - name: Publish mcp-server | |
| working-directory: apps/mcp-server | |
| run: | | |
| TAG_NAME="${GITHUB_REF#refs/tags/}" | |
| TAG_NAME="${TAG_NAME#v}" | |
| echo "Publishing codingbuddy version: $TAG_NAME" | |
| # Update version and replace workspace dependency with actual version | |
| cat <<< "$( jq --arg v "$TAG_NAME" '.version = $v | .dependencies["codingbuddy-rules"] = $v' package.json )" > package.json | |
| yarn npm publish | |
| env: | |
| YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| GITHUB_REF: ${{ github.ref }} | |
| - name: Output version number | |
| working-directory: apps/mcp-server | |
| run: | | |
| name=$(jq -r .name package.json) | |
| version=$(jq -r .version package.json) | |
| echo "Published $name@$version" |