-
Notifications
You must be signed in to change notification settings - Fork 13
43 lines (33 loc) · 924 Bytes
/
release.yml
File metadata and controls
43 lines (33 loc) · 924 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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