-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 931 Bytes
/
publish.yml
File metadata and controls
40 lines (34 loc) · 931 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
---
name: Publish to npm (manual release fallback)
on:
release:
types: [published]
workflow_dispatch:
inputs:
tag:
description: "Tag to publish (e.g. v0.2.1)"
required: true
permissions:
contents: read
id-token: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
ref: ${{ inputs.tag || github.event.release.tag_name || github.ref }}
- uses: actions/setup-node@v6
with:
node-version: 22
registry-url: https://registry.npmjs.org
cache: npm
cache-dependency-path: mcp-server/package-lock.json
- run: npm ci
working-directory: mcp-server
- run: npm run build
working-directory: mcp-server
- run: npm test
working-directory: mcp-server
- run: npm publish --provenance --access public
working-directory: mcp-server