Skip to content

Automate Chrome Web Store extension release#2342

Draft
quanru wants to merge 2 commits intomainfrom
codex/automate-chrome-web-store-release
Draft

Automate Chrome Web Store extension release#2342
quanru wants to merge 2 commits intomainfrom
codex/automate-chrome-web-store-release

Conversation

@quanru
Copy link
Copy Markdown
Collaborator

@quanru quanru commented Apr 11, 2026

Summary

This change adds automated Chrome Web Store publishing for the Midscene Chrome extension as part of the existing stable release workflow, while keeping GitHub Release generation intact if the store publish step fails.

What Changed

  • Added a dedicated scripts/publish-chrome-extension.sh helper that:
    • exchanges the refresh token for an access token
    • uploads the packaged extension zip to Chrome Web Store
    • submits the upload for publishing
    • polls release status until the submission reaches review or publish state
  • Updated .github/workflows/release.yml so the main release job still produces the GitHub Release and packaged extension artifact first
  • Moved Chrome Web Store publishing into a separate publish_chrome_web_store job
  • Made the Chrome Web Store publish step non-blocking and added a manual fallback summary when it fails
  • Documented the required repository secrets and manual fallback behavior in CONTRIBUTING.md

Why

The current release workflow already produces the packaged extension zip as a release asset. This change closes the last manual gap for stable releases, but still preserves a reliable manual fallback path when Chrome Web Store publishing fails.

Impact

  • Stable releases attempt to publish the extension to Chrome Web Store automatically from CI
  • alpha, beta, and rc releases continue to skip Chrome Web Store publication
  • If Chrome Web Store publishing fails, the GitHub Release and extension zip are still generated, so maintainers can manually upload the packaged zip
  • The workflow requires these repository secrets for stable releases:
    • CHROME_WEB_STORE_PUBLISHER_ID
    • CHROME_WEB_STORE_CLIENT_ID
    • CHROME_WEB_STORE_CLIENT_SECRET
    • CHROME_WEB_STORE_REFRESH_TOKEN

Validation

  • bash -n scripts/publish-chrome-extension.sh
  • bash scripts/publish-chrome-extension.sh --help
  • pnpm run lint

@quanru quanru changed the title [codex] Automate Chrome Web Store extension release Automate Chrome Web Store extension release Apr 11, 2026
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Apr 11, 2026

Deploying midscene with  Cloudflare Pages  Cloudflare Pages

Latest commit: 37ff9d1
Status: ✅  Deploy successful!
Preview URL: https://dfe3c09b.midscene.pages.dev
Branch Preview URL: https://codex-automate-chrome-web-st.midscene.pages.dev

View logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant