Skip to content

Commit 6a3ba92

Browse files
authored
fix: github release (#70)
1 parent 079061a commit 6a3ba92

File tree

4 files changed

+15
-48
lines changed

4 files changed

+15
-48
lines changed

.github/workflows/publish.yaml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ on:
77
permissions:
88
contents: write
99
jobs:
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

.github/workflows/version_bump.yaml

Lines changed: 0 additions & 37 deletions
This file was deleted.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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",

0 commit comments

Comments
 (0)