File tree 2 files changed +8
-10
lines changed
2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 4
4
- main
5
5
pull_request :
6
6
release :
7
- types : [created ]
7
+ types : [published ]
8
8
9
9
concurrency :
10
10
group : ${{ github.workflow }}-${{ github.ref }}
@@ -26,26 +26,24 @@ jobs:
26
26
- run : npm test
27
27
- run : npm run lint
28
28
29
- package :
29
+ publish :
30
30
runs-on : ubuntu-latest
31
31
if : github.event_name == 'release'
32
32
needs : build
33
33
34
34
permissions :
35
- contents : write
35
+ contents : read
36
+ id-token : write
36
37
37
38
steps :
38
39
- uses : actions/checkout@v4
39
40
- uses : actions/setup-node@v4
40
41
with :
41
42
node-version : 18
42
43
cache : npm
44
+ registry-url : ' https://registry.npmjs.org'
43
45
44
46
- run : npm ci
45
- - run : npm pack
46
-
47
- - name : Upload package to release
47
+ - run : npm publish --provenance --access public
48
48
env :
49
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
50
- run : |
51
- gh release upload ${{ github.event.release.tag_name }} ./*.tgz
49
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @modelcontextprotocol/sdk" ,
3
- "version" : " 0.3.3 " ,
3
+ "version" : " 0.4.0 " ,
4
4
"description" : " Model Context Protocol implementation for TypeScript" ,
5
5
"license" : " MIT" ,
6
6
"author" : " Anthropic, PBC (https://anthropic.com)" ,
You can’t perform that action at this time.
0 commit comments