Skip to content

Adding linting rules and updated dependancies #4

Adding linting rules and updated dependancies

Adding linting rules and updated dependancies #4

Workflow file for this run

name: Publish MCP to npmjs
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '24.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Check formatting
run: npm run format:check
- name: Test
run: npm test
- name: Sync version with release tag
run: npm version ${{ github.event.release.tag_name }} --no-git-tag-version
- name: Build package
run: npm run build
- name: Audit publish contents
run: npm pack --dry-run
- name: Publish to npmjs
run: npm publish --access public