We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 56d4a84 + c7fae0c commit a64162cCopy full SHA for a64162c
1 file changed
.github/workflows/publish.yml
@@ -19,6 +19,12 @@ jobs:
19
with:
20
node-version: "24"
21
registry-url: "https://registry.npmjs.org"
22
+ - name: Set version from tag
23
+ run: |
24
+ VERSION=${GITHUB_REF#refs/tags/v}
25
+ npm version "$VERSION" --no-git-tag-version
26
+ npm run sync-version
27
+
28
- run: npm ci
29
- run: npm run build --if-present
30
- run: npm test
@@ -33,10 +39,5 @@ jobs:
33
39
- name: Authenticate to MCP Registry
34
40
run: ./mcp-publisher login github-oidc
35
41
36
- - name: Set version in server.json
37
- run: |
38
- VERSION=${GITHUB_REF#refs/tags/v}
- jq --arg v "$VERSION" '.version = $v' server.json > server.tmp && mv server.tmp server.json
-
42
- name: Publish server to MCP Registry
43
run: ./mcp-publisher publish
0 commit comments