Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
cache: "npm"

- name: Install dependencies
run: npm ci
run: npm install --include=dev

- name: Lint
run: npm run lint
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Publish to npm

on:
push:
tags:
- 'v*'

permissions:
contents: read
id-token: write

jobs:
publish:
name: Build & Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
cache: 'npm'
- name: Install dependencies
run: npm install --include=dev
- name: Type check
run: npx tsc --noEmit
- name: Test
run: npm test
- name: Build
run: npm run build
- name: Publish
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "@hailbytes/mcp-server-template",
"version": "0.0.1",
"private": true,
"description": "Opinionated TypeScript scaffold for production MCP servers with built-in auth, rate limiting, audit logging, and observability.",
"type": "module",
"license": "MIT",
Expand Down Expand Up @@ -45,5 +44,9 @@
},
"engines": {
"node": ">=20.0.0"
},
"publishConfig": {
"access": "public",
"provenance": true
}
}
Loading