File tree Expand file tree Collapse file tree 4 files changed +15
-48
lines changed Expand file tree Collapse file tree 4 files changed +15
-48
lines changed Original file line number Diff line number Diff line change 7
7
permissions :
8
8
contents : write
9
9
jobs :
10
- publish :
10
+ check :
11
11
runs-on : ubuntu-latest
12
- environment : Production
12
+ outputs :
13
+ VERSION_EXISTS : ${{ steps.check-version.outputs.VERSION_EXISTS }}
14
+ VERSION : ${{ steps.get-version.outputs.VERSION }}
13
15
steps :
14
16
- uses : GitHubSecurityLab/actions-permissions/monitor@v1
15
17
- uses : actions/checkout@v4
@@ -40,26 +42,28 @@ jobs:
40
42
else
41
43
echo "VERSION_EXISTS=false" >> "$GITHUB_OUTPUT"
42
44
fi
45
+ publish :
46
+ runs-on : ubuntu-latest
47
+ environment : Production
48
+ needs : check
49
+ if : needs.check.outputs.VERSION_EXISTS == 'false'
50
+ steps :
43
51
- name : Build package
44
- if : steps.check-version.outputs.VERSION_EXISTS == 'false'
45
52
run : |
46
53
npm ci
47
54
npm run build
48
55
- name : Publish to NPM
49
- if : steps.check-version.outputs.VERSION_EXISTS == 'false'
50
56
run : npm publish
51
57
env :
52
58
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
53
59
- name : Publish git tag
54
- if : steps.check-version.outputs.VERSION_EXISTS == 'false'
55
60
run : |
56
61
git config --global user.name 'github-actions[bot]'
57
62
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
58
- git tag ${{ steps.get-version .outputs.VERSION }}
63
+ git tag ${{ needs.check .outputs.VERSION }}
59
64
git push origin --tags
60
65
- name : Publish git release
61
- if : steps.check-version.outputs.VERSION_EXISTS == 'false'
62
66
env :
63
67
GH_TOKEN : ${{ github.token }}
64
68
run : |
65
- gh release create ${{ github.env. VERSION }} --title "${{ github.env .VERSION }}" --generate-notes
69
+ gh release create ${{ needs.check.outputs. VERSION }} --title "${{ needs.check.outputs .VERSION }}" --generate-notes
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @mongodb-js/mongodb-mcp-server" ,
3
3
"description" : " MongoDB Model Context Protocol Server" ,
4
- "version" : " 0.0.2 " ,
4
+ "version" : " 0.0.3 " ,
5
5
"main" : " dist/index.js" ,
6
6
"author" : " MongoDB <info@mongodb.com>" ,
7
7
"homepage" : " https://github.com/mongodb-js/mongodb-mcp-server" ,
You can’t perform that action at this time.
0 commit comments