Skip to content

Commit 160fe40

Browse files
committed
chore: move argument generation to prepare-release
1 parent a01db62 commit 160fe40

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/prepare-release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ jobs:
3535
run: |
3636
echo "NEW_VERSION=$(npm version ${{ inputs.version }} --no-git-tag-version)" >> $GITHUB_OUTPUT
3737
npm run build:update-package-version
38+
39+
- name: Update server.json version and arguments
40+
run: |
41+
VERSION="${{ needs.check.outputs.VERSION }}"
42+
VERSION="${VERSION#v}"
43+
npm run generate:arguments
44+
3845
- name: Create release PR
3946
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # 7.0.8
4047
id: create-pr

.github/workflows/publish.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,6 @@ jobs:
107107
run: |
108108
gh release create ${{ needs.check.outputs.VERSION }} --title "${{ needs.check.outputs.VERSION }}" --generate-notes --target ${{ github.sha }} ${{ (needs.check.outputs.RELEASE_CHANNEL != 'latest' && '--prerelease') || ''}}
109109
110-
- name: Update server.json version and arguments
111-
run: |
112-
VERSION="${{ needs.check.outputs.VERSION }}"
113-
VERSION="${VERSION#v}"
114-
npm run generate:arguments
115-
116110
- name: Install MCP Publisher
117111
run: |
118112
curl -L "https://github.com/modelcontextprotocol/registry/releases/latest/download/mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher

0 commit comments

Comments
 (0)