Repository navigation
ci(extension): release one zip for both stores, lint it, optionally submit to AMO - #62
Merged
Merged
Conversation
…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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #50. Part of the Firefox release milestone.
Changes
Release workflow (
extension-release.yml)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 requiresbrowser_specific_settings.gecko.idandbackground.scripts.web-ext lintruns on the built zip before the release is created, through the same script as CI.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.AMO_JWT_ISSUERandAMO_JWT_SECRETsecrets exist. It's skipped, not failed, without them, on forks and on dry runs. Secrets can't be used in a job'sif:, so a step in the release job checks for them and passes onamo=true|false.web-ext sign --channel listed --approval-timeout 600000.extension-checks.mjs amo-result:.xpiis attached to the release astts-study-assistant-firefox-v<version>.xpi;Approval: timeout exceeded.means the version was submitted and is waiting for Mozilla's review. That isn't a failure;Scripts
.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"
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.amo-resultcommand: what it writes to the workflow output, and its exit codes.extension-lint.sh's, because the timeout message is tied to it.Also checked locally:
actionlintpasses on both workflows;extension-lint.shon the real package: 0 errors, the 3 allowed warnings. It exits 1 when anevalis added to a copy;npm test: 97 pass.After merge (acceptance)
These need the workflow on
main:web-ext lintpasses.about:debugging→ Load Temporary Add-on).background.scriptsis 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