Skip to content

baptistecdr/release-firefox-addon

 
 

Repository files navigation

Release Firefox Addon

This action publishes a Firefox add-on to the AMO (addons.mozilla.org).
Report bug · Request feature

GitHub Tag

Quick start

The minimal usage is as follows:

steps:
  - uses: baptistecdr/release-firefox-addon
    with:
      addon-id: "please specify your add-on in number or UUID format, or add-on name"
      addon-path: "path/to/your/addon.zip"
      auth-api-issuer: ${{ secrets.AUTH_API_ISSUER }}
      auth-api-secret: ${{ secrets.AUTH_API_SECRET }}
      release-note: |
        This is the first version of the add-on.

The auth-api-issuer and auth-api-secret are used to authenticate with the AMO API with JWT token. You can get credentials from here.

If your add-on includes minified files or transpiled files, you should submit your add-on with source code.

steps:
  - uses: baptistecdr/release-firefox-addon
    with:
      addon-id: "please specify your add-on in number or UUID format, or add-on name"
      addon-path: "path/to/your/addon.zip"
      source-path: "path/to/your/source-code.zip"
      approval-note: |
        The source project requires Node.js 20.x and yarn v3.
        To generate the source code, please run ...
      auth-api-issuer: ${{ secrets.AUTH_API_ISSUER }}
      auth-api-secret: ${{ secrets.AUTH_API_SECRET }}
      release-note: |
        This is the first version of the add-on.

Inputs

All supported options are the following:

Name Description Required Default
addon-id ID of the add-on to be published in numeric or UUID format, or the add-on slug Yes
addon-path Path to the add-on file to be published Yes
source-path Optional path to the source file of the version. This is nessesary if the version contains minified, concatenated, or transpiled code.
approval-note Optional note to help reviewers such as how to build the add-on or how to test with test accounts.
compatibility-firefox-min Minimum version of Firefox that the version is compatible with.
compatibility-firefox-max Maximum version of Firefox that the version of the add-on is compatible with.
license License of the version. You can see available licenses here.
release-note Information about changes in the new version. Note that this field supports only locale "en-US". Yes
channel 'Channel to publish the version. This field supports only "listed" and "unlisted". listed
auth-api-issuer An API key of the JWT token for authentication. Yes
auth-api-secret An API secret of the JWT token for authentication. Yes

Outputs

All supported outputs are the following:

Name Description
version 'Version number of the uploaded version.
version-id 'ID of the uploaded version in numeric format.
version-edit-url 'URL of the edit page of the uploaded version.

How to build

  • Install Node.JS LTS
  • Clone the project
  • Run yarn install
  • Run yarn package

Bugs and feature requests

Have a bug or a feature request? Please first search for existing and closed issues. If your problem or idea is not addressed yet, please open a new issue.

Contributing

Contributions are welcome!