Skip to content

Commit f41a129

Browse files
authored
feat(publish): allow manual workflow_dispatch for MCP Registry publish (#1586)
## Summary - Expands the gate on `publish-mcp-release-registry` so it also runs on `workflow_dispatch`. Lets us retroactively publish a previously-released version (or rerun a failed publish) from the Actions tab without re-running the npm release. - Bumps `server.json` to `0.0.72` to match `package.json`. The validation step added in #1585 would otherwise fail the next release, since `mark v0.0.72` (#1584) landed before #1585 — `server.json` was committed at `0.0.71`. ## Mechanics The job still `needs: publish-mcp-release-npm` so on a real `release` event it correctly waits for npm to publish first. On `workflow_dispatch`, the npm job is skipped (its own `if` is `release`-only), and `if: always() && needs.*.result != 'failure'/'cancelled'` lets the registry job run anyway. ## Follow-up Once merged, this enables a manual one-shot of v0.0.72 to the registry via the Actions tab. Follow-up to #1585. Reference #1477
1 parent 2ec36c1 commit f41a129

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,14 @@ jobs:
6868
- run: npm publish
6969

7070
publish-mcp-release-registry:
71-
if: github.event_name == 'release'
71+
# Runs on release (after npm publish succeeds) or via manual workflow_dispatch
72+
# (e.g. to retroactively publish a version, in which case publish-mcp-release-npm
73+
# is skipped — the always() + result check lets this job still run).
74+
if: |
75+
always() &&
76+
(github.event_name == 'release' || github.event_name == 'workflow_dispatch') &&
77+
needs.publish-mcp-release-npm.result != 'failure' &&
78+
needs.publish-mcp-release-npm.result != 'cancelled'
7279
needs: publish-mcp-release-npm
7380
runs-on: ubuntu-latest
7481
permissions:

server.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
"url": "https://github.com/microsoft/playwright-mcp",
77
"source": "github"
88
},
9-
"version": "0.0.71",
9+
"version": "0.0.72",
1010
"packages": [
1111
{
1212
"registryType": "npm",
1313
"identifier": "@playwright/mcp",
14-
"version": "0.0.71",
14+
"version": "0.0.72",
1515
"transport": {
1616
"type": "stdio"
1717
}
@@ -20,7 +20,7 @@
2020
"registryType": "oci",
2121
"registryBaseUrl": "https://playwright.azurecr.io",
2222
"identifier": "public/playwright/mcp",
23-
"version": "0.0.71",
23+
"version": "0.0.72",
2424
"transport": {
2525
"type": "stdio"
2626
}

0 commit comments

Comments
 (0)