Skip to content

Commit 92f8d2f

Browse files
authored
Merge branch 'main' into MCP-188
2 parents d4fec26 + dd7760b commit 92f8d2f

File tree

13 files changed

+73
-44
lines changed

13 files changed

+73
-44
lines changed

.github/workflows/accuracy-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
steps:
3030
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
3131
- uses: actions/checkout@v5
32-
- uses: actions/setup-node@v4
32+
- uses: actions/setup-node@v5
3333
with:
3434
node-version-file: package.json
3535
cache: "npm"

.github/workflows/check.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
steps:
1818
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
1919
- uses: actions/checkout@v5
20-
- uses: actions/setup-node@v4
20+
- uses: actions/setup-node@v5
2121
with:
2222
node-version-file: package.json
2323
cache: "npm"
@@ -31,7 +31,7 @@ jobs:
3131
steps:
3232
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
3333
- uses: actions/checkout@v5
34-
- uses: actions/setup-node@v4
34+
- uses: actions/setup-node@v5
3535
with:
3636
node-version-file: package.json
3737
cache: "npm"
@@ -45,7 +45,7 @@ jobs:
4545
steps:
4646
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
4747
- uses: actions/checkout@v5
48-
- uses: actions/setup-node@v4
48+
- uses: actions/setup-node@v5
4949
with:
5050
node-version-file: package.json
5151
cache: "npm"

.github/workflows/code_health.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
2222
if: matrix.os == 'ubuntu-latest'
2323
- uses: actions/checkout@v5
24-
- uses: actions/setup-node@v4
24+
- uses: actions/setup-node@v5
2525
with:
2626
node-version-file: package.json
2727
cache: "npm"
@@ -43,7 +43,7 @@ jobs:
4343
steps:
4444
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
4545
- uses: actions/checkout@v5
46-
- uses: actions/setup-node@v4
46+
- uses: actions/setup-node@v5
4747
with:
4848
node-version-file: package.json
4949
cache: "npm"
@@ -69,7 +69,7 @@ jobs:
6969
needs: [run-tests, run-atlas-tests]
7070
steps:
7171
- uses: actions/checkout@v5
72-
- uses: actions/setup-node@v4
72+
- uses: actions/setup-node@v5
7373
with:
7474
node-version-file: package.json
7575
cache: "npm"

.github/workflows/code_health_fork.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
2121
if: matrix.os == 'ubuntu-latest'
2222
- uses: actions/checkout@v5
23-
- uses: actions/setup-node@v4
23+
- uses: actions/setup-node@v5
2424
with:
2525
node-version-file: package.json
2626
cache: "npm"

.github/workflows/jira-issue.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
6363
- name: Remove create-jira label
6464
if: github.event.action == 'labeled' && github.event.label.name == 'create-jira'
65-
uses: actions/github-script@v7
65+
uses: actions/github-script@v8
6666
with:
6767
script: |
6868
try {

.github/workflows/prepare_release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
app-id: ${{ vars.DEVTOOLS_BOT_APP_ID }}
2424
private-key: ${{ secrets.DEVTOOLS_BOT_PRIVATE_KEY }}
2525
- uses: actions/checkout@v5
26-
- uses: actions/setup-node@v4
26+
- uses: actions/setup-node@v5
2727
with:
2828
node-version-file: package.json
2929
registry-url: "https://registry.npmjs.org"

.github/workflows/publish.yaml

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- uses: actions/checkout@v5
1919
with:
2020
fetch-depth: 0
21-
- uses: actions/setup-node@v4
21+
- uses: actions/setup-node@v5
2222
with:
2323
node-version-file: package.json
2424
registry-url: "https://registry.npmjs.org"
@@ -45,15 +45,28 @@ jobs:
4545
fi
4646
- name: Get npm tag
4747
id: npm-tag
48+
shell: bash
4849
run: |
49-
$regex = "^v?(?<major>0|[1-9]\d*)\.(?<minor>0|[1-9]\d*)\.(?<patch>0|[1-9]\d*)(?:-(?<prerelease>(?:[^.]*)))?"
50-
$version = "${{ steps.get-version.outputs.VERSION }}"
51-
$releaseChannel = $groups["prerelease"][0].value
50+
set -e
51+
VERSION="${{ steps.get-version.outputs.VERSION }}"
52+
53+
# Extract the release channel (latest, alpha, beta, rc)
54+
if [[ $VERSION =~ ^v?[0-9]+\.[0-9]+\.[0-9]+(-(.+))?$ ]]; then
55+
if [[ -n "${BASH_REMATCH[2]}" ]]; then
56+
CAPTURED_CHANNEL="${BASH_REMATCH[2]}"
57+
# The captured channel might have more dots, cases like
58+
# v1.2.3-alpha.1 For such cases we only want the channel relevant
59+
# part which is alpha.
60+
RELEASE_CHANNEL="${CAPTURED_CHANNEL%%.*}"
61+
else
62+
RELEASE_CHANNEL="latest"
63+
fi
64+
else
65+
echo "::error title=Invalid Version::Encountered unexpected version ${{ steps.get-version.outputs.VERSION }}, cannot proceed!"
66+
exit 1
67+
fi
5268
53-
if ([string]::IsNullOrEmpty($releaseChannel)) {
54-
$releaseChannel = "latest"
55-
}
56-
Write-Output "RELEASE_CHANNEL=$releaseChannel" >> $Env:GITHUB_OUTPUT
69+
echo "RELEASE_CHANNEL=${RELEASE_CHANNEL}" >> "$GITHUB_OUTPUT"
5770
- name: Output deployment info
5871
run: echo "::notice title=Deployment Info::Deploying version ${{ steps.get-version.outputs.VERSION }} to channel ${{ steps.npm-tag.outputs.RELEASE_CHANNEL }}"
5972

@@ -68,7 +81,7 @@ jobs:
6881
steps:
6982
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
7083
- uses: actions/checkout@v5
71-
- uses: actions/setup-node@v4
84+
- uses: actions/setup-node@v5
7285
with:
7386
node-version-file: package.json
7487
registry-url: "https://registry.npmjs.org"

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
pull-requests: write
1616
steps:
1717
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
18-
- uses: actions/stale@v9
18+
- uses: actions/stale@v10
1919
id: stale
2020
with:
2121
repo-token: ${{ secrets.GITHUB_TOKEN }}

package-lock.json

Lines changed: 22 additions & 22 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-mcp-server",
33
"description": "MongoDB Model Context Protocol Server",
4-
"version": "0.3.0",
4+
"version": "0.3.1-prerelease.1",
55
"type": "module",
66
"exports": {
77
".": {

0 commit comments

Comments
 (0)