Skip to content

Commit c4628d2

Browse files
committed
Add CI workflow
1 parent 702f827 commit c4628d2

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/main.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
6+
pull_request:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: 18
18+
cache: npm
19+
20+
- uses: actions/checkout@v4
21+
with:
22+
repository: modelcontextprotocol/typescript-sdk
23+
ssh-key: ${{ secrets.TYPESCRIPT_SDK_KEY }}
24+
path: packages/@modelcontextprotocol/sdk
25+
26+
- run: npm ci
27+
working-directory: packages/@modelcontextprotocol/sdk
28+
29+
- run: npm pack
30+
working-directory: packages/@modelcontextprotocol/sdk
31+
32+
- run: npm install --save packages/@modelcontextprotocol/sdk/modelcontextprotocol-sdk-*.tgz
33+
- run: npm ci
34+
- run: npm run build

0 commit comments

Comments
 (0)