Skip to content

v0.12.0

v0.12.0 #46

Workflow file for this run

name: CD
on:
release:
types: [published]
jobs:
build-mcpb:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.event.release.tag_name }}
- uses: actions/setup-node@v6
with:
node-version: "24"
- run: npm ci
working-directory: mcp-server
- name: Sync and verify all release metadata from tag
working-directory: mcp-server
env:
TAG_NAME: ${{ github.event.release.tag_name }}
run: node ../scripts/sync-release-version.mjs "$TAG_NAME"
- run: npx mcpb pack
working-directory: mcp-server
- uses: actions/upload-artifact@v7
with:
name: mcpb
path: mcp-server/*.mcpb
attach-mcpb:
runs-on: ubuntu-latest
needs: build-mcpb
permissions:
contents: write
steps:
- uses: actions/download-artifact@v4
with:
name: mcpb
path: dist
- name: Rename and upload mcpb to release
env:
GH_TOKEN: ${{ github.token }}
TAG_NAME: ${{ github.event.release.tag_name }}
run: |
mv dist/mcp-server.mcpb dist/github-rag-mcp.mcpb
gh release upload "$TAG_NAME" dist/github-rag-mcp.mcpb --clobber --repo "${{ github.repository }}"
npm-publish:
runs-on: ubuntu-latest
needs: build-mcpb
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.event.release.tag_name }}
- uses: actions/setup-node@v6
with:
node-version: "24"
registry-url: "https://registry.npmjs.org"
- run: npm ci
working-directory: mcp-server
- name: Sync and verify all release metadata from tag
working-directory: mcp-server
run: node ../scripts/sync-release-version.mjs "$TAG_NAME"
env:
TAG_NAME: ${{ github.event.release.tag_name }}
- name: Publish to npm
working-directory: mcp-server
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
TAG_NAME: ${{ github.event.release.tag_name }}
run: |
TAG="latest"
if echo "${TAG_NAME}" | grep -qE '[-]'; then
TAG="next"
fi
npm publish --access public --tag "$TAG"