1.1.1 • Published 4 months ago

semantic-release-web-ext v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

semantic-release-web-ext

šŸ¦ŠšŸ“¦šŸš€ semantic-release-web-ext is a set of plugins for semantic-release that automates the process of publishing Firefox add-ons using the web-ext tool. It ensures that your add-ons are released in a consistent and reliable manner.

Installation

npm install --save-dev semantic-release-web-ext

Example

Using defaults

{
  "release": {
    "branches": ["master"],
    "plugins": [
      "@semantic-release/commit-analyzer",
      "@semantic-release/release-notes-generator",
      "semantic-release-web-ext",
      "@semantic-release/github"
    ]
  }
}

Providing configuration options. For example, publish artifacts in GitHub Releases.

{
  "release": {
    "branches": ["master"],
    "plugins": [
      "@semantic-release/commit-analyzer",
      "@semantic-release/release-notes-generator",
      [
        "semantic-release-web-ext",
        {
          "artifactsDir": "extension-dist"
        }
      ],
      [
        "@semantic-release/github",
        {
          "assets": ["extension-dist/*"]
        }
      ]
    ]
  }
}

Usage

The package implements the following plugins

verifyConditions

Verifies the environment variables and plugin options, uses web-ext lint command to validate extensions manifest and source code files

prepare

Updates manifest.json file with next version.

publish

Publishes extension using web-ext sign command

Configuration

Config optionEnvironment variableDefault valueDescription
WEB_EXT_API_KEYREQUIRED. API key (JWT issuer) for accessing the addons.mozilla.org API
WEB_EXT_API_SECRETREQUIRED API secret (JWT secret) from addons.mozilla.org API
channelWEB_EXT_CHANNELlistedpublish channel, "listed" or "unlisted"
sourceDirWEB_EXT_SOURCE_DIRdistThe directory of the extension's source code
artifactsDirWEB_EXT_ARTIFACTS_DIRartifactsThe path of a directory to save artifacts in
approvalTimeoutWEB_EXT_APPROVAL_TIMEOUTweb-ext lib defaultNumber of milliseconds to wait for approval before giving up
validationTimeoutWEB_EXT_VALIDATION_TIMEOUTweb-ext lib defaultNumber of milliseconds to wait for validation before giving up
amoBaseUrlWEB_EXT_AMO_BASE_URLhttps://addons.mozilla.org/api/v5/Add-on submission API base URL

Similar plugins

1.1.1

4 months ago

1.1.0

4 months ago

1.0.1

4 months ago

1.0.0

4 months ago

0.0.1

4 months ago