Skip to content

Commit 54563a5

Browse files
committed
chore: remove id-token, move publish step
1 parent 106e28a commit 54563a5

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ jobs:
8080
environment: Production
8181
permissions:
8282
contents: write
83-
id-token: write # Required for OIDC authentication with MCP Registry
8483
needs:
8584
- check
8685
if: needs.check.outputs.VERSION_EXISTS == 'false'
@@ -102,6 +101,12 @@ jobs:
102101
env:
103102
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
104103

104+
- name: Publish git release
105+
env:
106+
GH_TOKEN: ${{ github.token }}
107+
run: |
108+
gh release create ${{ needs.check.outputs.VERSION }} --title "${{ needs.check.outputs.VERSION }}" --generate-notes --target ${{ github.sha }} ${{ (needs.check.outputs.RELEASE_CHANNEL != 'latest' && '--prerelease') || ''}}
109+
105110
- name: Update server.json version and arguments
106111
run: |
107112
VERSION="${{ needs.check.outputs.VERSION }}"
@@ -116,10 +121,4 @@ jobs:
116121
run: ./mcp-publisher login github --token ${{ steps.app-token.outputs.token }}
117122

118123
- name: Publish to MCP Registry
119-
run: ./mcp-publisher publish
120-
121-
- name: Publish git release
122-
env:
123-
GH_TOKEN: ${{ github.token }}
124-
run: |
125-
gh release create ${{ needs.check.outputs.VERSION }} --title "${{ needs.check.outputs.VERSION }}" --generate-notes --target ${{ github.sha }} ${{ (needs.check.outputs.RELEASE_CHANNEL != 'latest' && '--prerelease') || ''}}
124+
run: ./mcp-publisher publish

0 commit comments

Comments
 (0)