Skip to content

Commit ed41cc3

Browse files
committed
chore: use app-token publishing
1 parent ac1e696 commit ed41cc3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ jobs:
1515
RELEASE_CHANNEL: ${{ steps.npm-tag.outputs.RELEASE_CHANNEL }}
1616
steps:
1717
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
18+
- uses: mongodb-js/devtools-shared/actions/setup-bot-token@main
19+
id: app-token
20+
with:
21+
app-id: ${{ vars.DEVTOOLS_BOT_APP_ID }}
22+
private-key: ${{ secrets.DEVTOOLS_BOT_PRIVATE_KEY }}
1823
- uses: actions/checkout@v5
1924
with:
2025
fetch-depth: 0
@@ -108,7 +113,9 @@ jobs:
108113
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
109114
110115
- name: Login to MCP Registry
111-
run: ./mcp-publisher login github-oidc
116+
run: ./mcp-publisher login github --token ${{ secrets.GITHUB_TOKEN }}
117+
env:
118+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
112119

113120
- name: Publish to MCP Registry
114121
run: ./mcp-publisher publish

0 commit comments

Comments
 (0)