From 92a86d7a1f0b217a318040f04c3e12184a73f223 Mon Sep 17 00:00:00 2001 From: Mihai PLESA Date: Wed, 16 Jul 2025 20:13:01 +0100 Subject: [PATCH 1/4] npm publish workflow --- .github/workflows/build-release.yml | 58 +++++++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build-release.yml diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml new file mode 100644 index 0000000..5590e51 --- /dev/null +++ b/.github/workflows/build-release.yml @@ -0,0 +1,58 @@ +name: Build Release + +on: + workflow_dispatch: + +jobs: + publish-npm: + runs-on: ubuntu-latest + + permissions: + # Give the default GITHUB_TOKEN write permission to commit and push the + # added or changed files to the repository. + contents: write + + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + ref: ${{ github.head_ref }} + + - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 + with: + node-version: '22.x' + registry-url: 'https://registry.npmjs.org' + + - name: Configure Git + run: | + git config --global user.name "github-actions[bot]" + git config --global user.email "github-actions[bot]@users.noreply.github.com" + + - name: Install dependencies + run: npm install + + - name: Bump patch version + id: bump-version + run: | + VERSION=$(npm version patch --no-git-tag-version) + echo "version=${VERSION}" >> $GITHUB_OUTPUT + + - name: Build assets + run: npm run build + + - name: Bump version and commit build assets + run: | + git add package.json + git commit -m "ci: update build assets (${{ steps.bump-version.outputs.version }})" + git push + + - name: Publish NPM package + run: npm publish --no-git-checks --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + + - name: Create release + uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2.2.1 + with: + tag_name: ${{ steps.bump-version.outputs.version }} + generate_release_notes: true + make_latest: true diff --git a/package.json b/package.json index 89067b9..82cb7c4 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ ], "scripts": { "build": "tsc && shx chmod +x dist/*.js", - "prepare": "npm run format &&npm run build", + "prepare": "npm run format && npm run build", "watch": "tsc --watch", "format": "prettier --write \"src/**/*.ts\"", "format:check": "prettier --check \"src/**/*.ts\"" From 353900def35a1741acd9c992a042e48ed355e3f2 Mon Sep 17 00:00:00 2001 From: Mihai PLESA Date: Wed, 16 Jul 2025 20:19:18 +0100 Subject: [PATCH 2/4] fix --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 95f7e62..6ef6c1b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@brave/brave-search-mcp-server", - "version": "1.0", + "version": "1.0.0", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/package.json b/package.json index 82cb7c4..16aebbc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@brave/brave-search-mcp-server", - "version": "1.1", + "version": "1.0.0", "description": "MCP server for Brave Search. Uses the Brave Search API to return results from the web, including ranked links, images, and videos, as well as AI summaries of pages, rich results, and more.", "keywords": [ "api", From 97fa338ff3ff64be03cccda6ddce234ba860a86b Mon Sep 17 00:00:00 2001 From: Mihai PLESA Date: Wed, 16 Jul 2025 20:20:24 +0100 Subject: [PATCH 3/4] fix --- .github/workflows/build-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 5590e51..6dc2d49 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -41,7 +41,7 @@ jobs: - name: Bump version and commit build assets run: | - git add package.json + git add package.json package-lock.json git commit -m "ci: update build assets (${{ steps.bump-version.outputs.version }})" git push From c325ab6756c00597b88e82bbd7226c00d153fd43 Mon Sep 17 00:00:00 2001 From: Mihai PLESA Date: Wed, 16 Jul 2025 20:42:32 +0100 Subject: [PATCH 4/4] fix --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6ef6c1b..0cab258 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@brave/brave-search-mcp-server", - "version": "1.0.0", + "version": "1.3.0", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/package.json b/package.json index 16aebbc..87f0f3e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@brave/brave-search-mcp-server", - "version": "1.0.0", + "version": "1.3.0", "description": "MCP server for Brave Search. Uses the Brave Search API to return results from the web, including ranked links, images, and videos, as well as AI summaries of pages, rich results, and more.", "keywords": [ "api",