From 92554abfd1e5e007b55ab17064a43dd7802afa7a Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Fri, 15 Aug 2025 10:25:46 -0700 Subject: [PATCH] devops: extension publishing job (#888) --- .github/workflows/publish.yml | 28 ++++++++++++++++++++++++++++ extension/manifest.json | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f581c2c..ed23287 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -68,3 +68,31 @@ jobs: for tag in $(echo ${{ steps.build-push.outputs.metadata['image.name'] }} | tr ',' '\n'); do attach_eol_manifest $tag done + + package-extension: + runs-on: ubuntu-latest + permissions: + contents: write # Needed to upload release assets + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'npm' + - name: Install extension dependencies + working-directory: ./extension + run: npm ci + - name: Build extension + working-directory: ./extension + run: npm run build + - name: Package extension + working-directory: ./extension + run: | + cd dist + zip -r ../playwright-mcp-extension-${{ github.event.release.tag_name }}.zip . + cd .. + - name: Upload extension to release + env: + GITHUB_TOKEN: ${{ github.token }} + run: | + gh release upload ${{github.event.release.tag_name}} ./extension/playwright-mcp-extension-${{ github.event.release.tag_name }}.zip diff --git a/extension/manifest.json b/extension/manifest.json index d39c7b0..fdcf584 100644 --- a/extension/manifest.json +++ b/extension/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 3, "name": "Playwright MCP Bridge", - "version": "1.0.0", + "version": "0.0.33", "description": "Share browser tabs with Playwright MCP server", "key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA9nMS2b0WCohjVHPGb8D9qAdkbIngDqoAjTeSccHJijgcONejge+OJxOQOMLu7b0ovt1c9BiEJa5JcpM+EHFVGL1vluBxK71zmBy1m2f9vZF3HG0LSCp7YRkum9rAIEthDwbkxx6XTvpmAY5rjFa/NON6b9Hlbo+8peUSkoOK7HTwYnnI36asZ9eUTiveIf+DMPLojW2UX33vDWG2UKvMVDewzclb4+uLxAYshY7Mx8we/b44xu+Anb/EBLKjOPk9Yh541xJ5Ozc8EiP/5yxOp9c/lRiYUHaRW+4r0HKZyFt0eZ52ti2iM4Nfk7jRXR7an3JPsUIf5deC/1cVM/+1ZQIDAQAB",