Skip to content

0.9.0

0.9.0 #9

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
jobs:
build-and-publish:
runs-on: ubuntu-latest
permissions:
contents: write # For creating release
id-token: write # For npm provenance and MCP registry OIDC
env:
LEFTHOOK: '0' # Skip lefthook hooks; this job commits and pushes from CI
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: '24'
registry-url: 'https://registry.npmjs.org/'
- name: Run preversion checks
run: npm run preversion
- name: Build MCP Bundle
run: npm run bundle
- name: Update server.json (MCP Bundle)
run: node scripts/update-server-json-mcpb.cjs
- name: Publish to npm
run: npm publish --provenance --access public
- name: Update server.json (npm)
run: node scripts/update-server-json-npm.cjs
- name: Commit and push server.json
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add server.json
if git diff --staged --quiet; then
echo "No changes to server.json"
else
git commit -m "Sync package versions in server.json [skip ci]"
git push origin HEAD:master
fi
- name: Extract release notes from CHANGELOG
run: |
VERSION="${GITHUB_REF_NAME#v}"
node scripts/extract-changelog-section.cjs "$VERSION" > release-notes.md
if [ ! -s release-notes.md ]; then
echo "::error::Empty CHANGELOG section for $VERSION"
exit 1
fi
- name: Create Release
uses: softprops/action-gh-release@v3
with:
files: '*.mcpb'
body_path: release-notes.md
- name: Install MCP Publisher
run: |
curl -L "https://github.com/modelcontextprotocol/registry/releases/latest/download/mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher
- name: Login to MCP Registry
run: ./mcp-publisher login github-oidc
- name: Publish to MCP Registry
run: ./mcp-publisher publish