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 77permissions :
88 contents : write
99jobs :
10- publish :
10+ check :
1111 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 }}
1315 steps :
1416 - uses : GitHubSecurityLab/actions-permissions/monitor@v1
1517 - uses : actions/checkout@v4
@@ -40,26 +42,28 @@ jobs:
4042 else
4143 echo "VERSION_EXISTS=false" >> "$GITHUB_OUTPUT"
4244 fi
45+ publish :
46+ runs-on : ubuntu-latest
47+ environment : Production
48+ needs : check
49+ if : needs.check.outputs.VERSION_EXISTS == 'false'
50+ steps :
4351 - name : Build package
44- if : steps.check-version.outputs.VERSION_EXISTS == 'false'
4552 run : |
4653 npm ci
4754 npm run build
4855 - name : Publish to NPM
49- if : steps.check-version.outputs.VERSION_EXISTS == 'false'
5056 run : npm publish
5157 env :
5258 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
5359 - name : Publish git tag
54- if : steps.check-version.outputs.VERSION_EXISTS == 'false'
5560 run : |
5661 git config --global user.name 'github-actions[bot]'
5762 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 }}
5964 git push origin --tags
6065 - name : Publish git release
61- if : steps.check-version.outputs.VERSION_EXISTS == 'false'
6266 env :
6367 GH_TOKEN : ${{ github.token }}
6468 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 11{
22 "name" : " @mongodb-js/mongodb-mcp-server" ,
33 "description" : " MongoDB Model Context Protocol Server" ,
4- "version" : " 0.0.2 " ,
4+ "version" : " 0.0.3 " ,
55 "main" : " dist/index.js" ,
66 "author" : " MongoDB <info@mongodb.com>" ,
77 "homepage" : " https://github.com/mongodb-js/mongodb-mcp-server" ,
You can’t perform that action at this time.
0 commit comments