Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions .github/workflows/release-mcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,17 @@ jobs:
- name: Extract MCP version
run: echo "MCP_VERSION=${GITHUB_REF_NAME#mcp/v}" >> $GITHUB_ENV

- name: Find previous MCP tag
run: |
PREV=$(git tag --sort=-version:refname | grep '^mcp/v' | grep -v "^${GITHUB_REF_NAME}$" | head -1)
echo "MCP_PREVIOUS_TAG=${PREV}" >> $GITHUB_ENV

- uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6.4.0
with:
distribution: goreleaser
version: latest
args: release --clean --config .goreleaser.mcp.yaml --skip=validate
args: release --clean --config .goreleaser.mcp.yaml
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
GORELEASER_CURRENT_TAG: ${{ github.ref_name }}
GORELEASER_PREVIOUS_TAG: ${{ env.MCP_PREVIOUS_TAG }}
# Override the parsed tag with the bare semver so GoReleaser's
# validation passes; the actual GitHub release tag is set via
# `release.tag` in .goreleaser.mcp.yaml.
GORELEASER_CURRENT_TAG: v${{ env.MCP_VERSION }}
MCP_VERSION: ${{ env.MCP_VERSION }}

release-mcp-to-npm:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
RELEASE_VERSION: ${{ env.RELEASE_VERSION }}
# Override the parsed tag with the bare semver so GoReleaser's
# validation passes; the actual GitHub release tag is set via
# `release.tag` in .goreleaser.yaml.
GORELEASER_CURRENT_TAG: v${{ env.RELEASE_VERSION }}

release-to-npm:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .goreleaser.mcp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,7 @@ checksum:

changelog:
disable: true

release:
mode: keep-existing
tag: "mcp/v{{ .Version }}"
3 changes: 3 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ changelog:
exclude:
- "^docs:"
- "^test:"
release:
mode: keep-existing
tag: "plugin-validator/v{{ .Version }}"
# The lines beneath this are called `modelines`. See `:help modeline`
# Feel free to remove those if you don't want/use them.
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
Expand Down
Loading