fix: pin @playwright/mcp to 0.0.68 for reproducible CI builds

Mutable @latest dist-tag can resolve to different versions over time,
causing non-reproducible builds and unexpected breakage.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
snomiao
2026-03-07 04:17:27 +00:00
parent c2806b2922
commit 4115d5b3b6

View File

@@ -116,9 +116,9 @@ jobs:
shell: bash
run: |
if [ "$RUNNER_OS" = "Linux" ]; then
ARGS='["@playwright/mcp@latest"]'
ARGS='["@playwright/mcp@0.0.68"]'
else
ARGS='["@playwright/mcp@latest", "--headless"]'
ARGS='["@playwright/mcp@0.0.68", "--headless"]'
fi
cat > "${{ runner.temp }}/mcp-config.json" <<EOF
{"mcpServers":{"playwright":{"command":"npx","args":${ARGS}}}}