The GitHub Actions workflow builds and validates a ZIP on every push to main. Once the store item and credentials are configured, that same run uploads the ZIP through Chrome Web Store API V2 and submits it for review. Approval and public availability are controlled by Chrome Web Store, so a successful run means submitted, not necessarily live.
npx -y npm@10.9.4 ci --install-strategy=nested && npm test && npx tsc --noEmit && npm run build && (cd dist && zip -qr /tmp/retrace-chrome-web-store.zip .). The manifest must be at the root of the ZIP.The index and API keys stay in the browser profile; chat history stays in memory during the current session. Indexing sends page text and selected media to Google Gemini. Search queries go to Gemini for embeddings. Chat sends prompts and relevant history results to the selected provider. Retrace does not run a backend. The store privacy answers must describe these provider transfers and the extension’s broad browsing permissions accurately.
google-github-actions/auth@v3 to generate the short-lived OAuth token used by the workflow, grant the service account Service Account Token Creator on itself. Keep the JSON key out of the repository.CWS_PUBLISHER_ID and CWS_EXTENSION_ID, and secret CWS_SERVICE_ACCOUNT_JSON to the complete JSON key. The workflow skips publishing until both IDs are set. It fails if only one ID or no key is present.main. Each push to main runs tests, type checking, builds a ZIP artifact, uploads it, checks the upload state, and submits the update for review. The package version appends the GitHub workflow run number to the base manifest.json version (for example 1.0.0.42), so it increases on normal runs. Increase the base version in source when making a larger release. If a manual upload has a higher version, update the base version before the next automatic run.The workflow can also be rerun from Actions → Chrome Web Store → Run workflow on main. A manual change to the store item’s visibility must first be published manually with the new visibility before API publishing resumes.
Relevant documentation: first publication, API V2, service accounts.