File tree Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+
8
+ concurrency : ${{ github.workflow }}-${{ github.ref }}
9
+
10
+ jobs :
11
+ release :
12
+ name : Release
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - uses : actions/checkout@v4
16
+ with :
17
+ token : ${{ secrets.GITHUB_TOKEN }}
18
+
19
+ - uses : actions/setup-node@v3
20
+ name : Setup node.js
21
+ with :
22
+ cache : npm
23
+ node-version-file : " .nvmrc"
24
+
25
+ - name : Install dependencies
26
+ run : npm ci
27
+ shell : bash
28
+
29
+ - name : Build
30
+ run : npm run build
31
+
32
+ - name : Create Release Pull Request or Publish to npm
33
+ id : changesets
34
+ uses : changesets/action@v1
35
+ with :
36
+ publish : npm run release
37
+ env :
38
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
39
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 11
11
"lint:fix" : " prettier --write --ignore-unknown ." ,
12
12
"lint" : " prettier --check --cache --ignore-unknown ." ,
13
13
"inspector" : " npm run build && npx @modelcontextprotocol/inspector dist/index.js" ,
14
+ "release" : " changeset publish" ,
14
15
"typecheck" : " tsc --noEmit"
15
16
},
16
17
"author" : " " ,
You can’t perform that action at this time.
0 commit comments