Skip to content

chore(deps-dev): bump eslint from 10.4.1 to 10.5.0 #240

chore(deps-dev): bump eslint from 10.4.1 to 10.5.0

chore(deps-dev): bump eslint from 10.4.1 to 10.5.0 #240

Workflow file for this run

name: CI
on:
push:
branches: [main, master]
tags: ["v*"]
pull_request:
branches: [main, master]
workflow_dispatch:
permissions:
contents: read
jobs:
test:
uses: runcycles/.github/.github/workflows/ci-typescript.yml@main
publish:
name: Publish to npm
needs: test
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
concurrency:
group: npm-publish
cancel-in-progress: false
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: 20
cache: npm
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run build
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
publish-registry:
name: Publish to MCP Registry
needs: publish
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- 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: Authenticate to MCP Registry
run: ./mcp-publisher login github-oidc
- name: Publish server to MCP Registry
run: ./mcp-publisher publish
github-release:
name: Create GitHub Release
needs: publish-registry
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- name: Create release with notes from CHANGELOG
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -euo pipefail
VERSION="${GITHUB_REF#refs/tags/v}"
# Skip cleanly if a release already exists (e.g. cut by hand earlier).
if gh release view "v$VERSION" >/dev/null 2>&1; then
echo "Release v$VERSION already exists — skipping."
exit 0
fi
# Extract just the [VERSION] section of CHANGELOG.md (between
# "## [VERSION]" and the next "## [...]"). Stops on next heading
# or EOF, so it works for the most-recent entry too.
NOTES=$(awk -v ver="$VERSION" '
$0 ~ "^## \\[" ver "\\]" { found=1; next }
found && /^## \[/ { exit }
found { print }
' CHANGELOG.md)
if [ -z "$(echo "$NOTES" | tr -d "[:space:]")" ]; then
echo "No CHANGELOG entry for v$VERSION — falling back to auto-generated notes."
gh release create "v$VERSION" --title "v$VERSION" --generate-notes
else
gh release create "v$VERSION" --title "v$VERSION" --notes "$NOTES"
fi