Skip to content

Commit 2473b66

Browse files
critesjoshclaude
andcommitted
feat: rename package to @aztec/mcp-server with CI and automated releases
- Rename npm package from aztec-mcp-server to @aztec/mcp-server - Update repository URL to aztecprotocol/mcp-server - Add publishConfig for public scoped package access - Add GitHub Actions CI workflow with test and release jobs - Add semantic-release for automatic versioning and npm publishing - Add commitlint to enforce conventional commit messages on PRs Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f62509f commit 2473b66

5 files changed

Lines changed: 7059 additions & 1085 deletions

File tree

.github/workflows/ci.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
commitlint:
11+
runs-on: ubuntu-latest
12+
if: github.event_name == 'pull_request'
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: 20
20+
- run: npm ci
21+
- name: Lint commits
22+
run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
23+
24+
test:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v4
28+
- uses: actions/setup-node@v4
29+
with:
30+
node-version: 20
31+
- run: npm ci
32+
- run: npm test
33+
- run: npm run build
34+
35+
release:
36+
needs: test
37+
runs-on: ubuntu-latest
38+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
39+
permissions:
40+
contents: write
41+
issues: write
42+
pull-requests: write
43+
steps:
44+
- uses: actions/checkout@v4
45+
with:
46+
fetch-depth: 0
47+
- uses: actions/setup-node@v4
48+
with:
49+
node-version: 20
50+
registry-url: https://registry.npmjs.org
51+
- run: npm ci
52+
- run: npm run build
53+
- name: Release
54+
run: npx semantic-release
55+
env:
56+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.releaserc.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"branches": ["main"],
3+
"plugins": [
4+
"@semantic-release/commit-analyzer",
5+
"@semantic-release/release-notes-generator",
6+
"@semantic-release/npm",
7+
"@semantic-release/github"
8+
]
9+
}

commitlint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default { extends: ['@commitlint/config-conventional'] };

0 commit comments

Comments
 (0)