Adding linting rules and updated dependancies #4
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |