Skip to content

ci(extension): release one zip for both stores, lint it, optionally submit to AMO - #62

Merged
pratts merged 1 commit into
mainfrom
ci/50-release-both-stores
Nov 18, 2026
Merged

pratts merged 1 commit into
mainfrom
ci/50-release-both-stores

Conversation

@pratts

@pratts pratts commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Closes #50. Part of the Firefox release milestone.

Changes

Release workflow (extension-release.yml)

  • One zip for both stores: tts-study-assistant-extension-v<version>.zip, as feat(extension): speak with the Web Speech API where chrome.tts is missing #55 decided (one manifest). The package check already requires browser_specific_settings.gecko.id and background.scripts.
  • web-ext lint runs on the built zip before the release is created, through the same script as CI.
  • Dry run: workflow_dispatch (Actions → Extension release → Run workflow) builds, checks and lints the zip from any ref and uploads it as an artifact for 7 days, with no release or AMO submission.
  • The new job "Submit to addons.mozilla.org":
    • When it runs: only on a new release from a tag push, and only when the AMO_JWT_ISSUER and AMO_JWT_SECRET secrets exist. It's skipped, not failed, without them, on forks and on dry runs. Secrets can't be used in a job's if:, so a step in the release job checks for them and passes on amo=true|false.
    • What it submits: the exact files from the released zip (passed along as an artifact), with web-ext sign --channel listed --approval-timeout 600000.
    • The result is sorted by extension-checks.mjs amo-result:
      • signed: the .xpi is attached to the release as tts-study-assistant-firefox-v<version>.xpi;
      • pending: web-ext's Approval: timeout exceeded. means the version was submitted and is waiting for Mozilla's review. That isn't a failure;
      • failed: anything else, e.g. credentials or validation. The job fails with the error.
  • Release notes: the zip is for both stores, with load steps for Chrome and Firefox.

Scripts

  • New .github/scripts/extension-lint.sh: shared by Extension CI and the release workflow, with web-ext pinned once (10.8.0).
  • extension-version-check.sh: comments only. Chrome's rules are stricter than AMO's, so one rule covers both stores, and AMO rejects any version number it has seen before.

README "Releasing"

  • both stores and the dry run;
  • First AMO version, by hand: listing details, the privacy URL, and notes to the reviewer on permissions and the linter's false "minified" flags;
  • Automatic later versions: setting up the API keys, and what each job result means.

No extension version bump: no shipped files change.

Tests

node --test .github/scripts/*.test.mjs: 16 pass (5 new).

  • amoSignOutcome: signed; pending on the approval timeout or --approval-timeout 0; failed on credentials, validation errors and a validation timeout.
  • The amo-result command: what it writes to the workflow output, and its exit codes.
  • Pinned version: the release workflow's web-ext version equals extension-lint.sh's, because the timeout message is tied to it.

Also checked locally:

  • actionlint passes on both workflows;
  • extension-lint.sh on the real package: 0 errors, the 3 allowed warnings. It exits 1 when an eval is added to a copy;
  • the release notes render correctly for an existing tag;
  • extension npm test: 97 pass.

After merge (acceptance)

These need the workflow on main:

  • Run Extension release manually: the zip builds and web-ext lint passes.
  • The artifact zip loads in Chrome (unpacked) and in Firefox (about:debugging → Load Temporary Add-on).
  • On the next tag push without AMO secrets, Submit to addons.mozilla.org shows as skipped.
  • The first Chrome Web Store upload with background.scripts is accepted (see [extension][ci][P2] Step 8: Release a package for both stores, with optional AMO signing #50's comment; if not, add the per-browser manifest build).

🤖 Generated with Claude Code

…ubmit to AMO

- Release workflow lints the built zip with web-ext before releasing, and
  can be run manually as a dry run (zip kept as an artifact, no release).
- New "Submit to addons.mozilla.org" job: runs web-ext sign --channel
  listed on the released files when AMO_JWT_ISSUER/AMO_JWT_SECRET are set
  (skipped otherwise, and on forks and dry runs). Attaches the signed .xpi
  when AMO signs within 10 minutes; "waiting for review" passes.
- extension-checks.mjs amo-result classifies the sign run (signed,
  pending, failed), with tests; a test keeps the pinned web-ext versions
  in step.
- extension-lint.sh shared by CI and the release, pinning web-ext once.
- Release notes, version-check comments and README cover both stores,
  including the manual first AMO submission.

Closes #50

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pratts pratts added this to the Firefox release (AMO) milestone Nov 18, 2026
@pratts pratts self-assigned this Nov 18, 2026
@vercel

vercel Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
tts-study-assistant Ready Ready Preview Nov 18, 2026 2:47pm UTC

@pratts
pratts merged commit 9bb6ce9 into main Nov 18, 2026
16 checks passed
@pratts
pratts deleted the ci/50-release-both-stores branch November 18, 2026 14:49

This branch was successfully deployed

1 active deployment
Preview — 51b5e5c0 Deployed Nov 18, 2026 by vercel[bot]
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.

[extension][ci][P2] Step 8: Release a package for both stores, with optional AMO signing

1 participant