Skip to content

0.21.3

0.21.3 #30

Workflow file for this run

on:
release:
types: [published]
permissions:
# Required for MCP Publisher for publishing using OIDC
id-token: write
name: publish
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- name: Check version consistency
run: npm run sync-version check
- run: npm run build
- run: npm publish --access=public
if: ${{!github.event.release.prerelease}}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_API_KEY }}
- run: npm publish --tag prerelease
if: ${{github.event.release.prerelease}}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_API_KEY }}
# Publish to MCP Registry only for non-prerelease releases
- name: Install MCP Publisher
if: ${{!github.event.release.prerelease}}
run: |
curl -LsSf https://github.com/modelcontextprotocol/mcp-publisher/releases/latest/download/mcp-publisher-installer.sh | sh
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Publish to MCP Registry
if: ${{!github.event.release.prerelease}}
run: |
mcp-publisher login --github-oidc
mcp-publisher publish