百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
P

publish-browser-extension

> 编程语言
开源

CI 工具可轻松发布浏览器扩展

100 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

CI 工具可轻松发布浏览器扩展

Publish Browser Extension

Publish an extension to all the extension stores in a single command!

https://github.com/aklinker1/publish-browser-extension/assets/10101283/b0e856ca-4e26-4c7e-9ff8-c900e203cab5

Features

  • Publish to the following stores:

    • Chrome
    • Edge
    • Firefox
    • Opera
  • Helper script to generate secrets and configure options

  • Upload sources ZIP to the Firefox Addon Store

[!IMPORTANT]

You are responsible for uploading and submitting an extension for the first time by hand. publish-browser-extension does not provide tools for creating a new extension.

Install

bash
npm i -D publish-browser-extension
pnpm i -D publish-browser-extension
bun i -D publish-browser-extension

CLI Usage

To get started, run the init command. It will walk you through generating all the necessary environment variables/CLI flags, saving them to a .env.submit file:

bash
publish-extension init

All CLI flags can be passed as environment variables instead. For example, setting the CHROME_CLIENT_ID environment variable is equivalent to passing --chrome-client-id. Just convert the flag to UPPER_SNAKE_CASE.

Then, just run the submit command, passing the ZIP files you want to submit:

bash
publish-extension \
  --chrome-zip dist/chrome.zip \
  --firefox-zip dist/firefox.zip --firefox-sources-zip dist/sources.zip \
  --edge-zip dist/chrome.zip \
  --opera-zip dist/opera.zip

publish-extension will automatically look for a .env.submit file and load it if it exists.

JS Usage

javascript
import { publishExtension } from 'publish-browser-extension';

const results = await publishExtension({
  // ...
});
console.log(results);

Options

Refer to the Config Reference.

Contributing

Contributor Setup

  1. Install bun
  2. Install dependencies
    bash
    bun i
  3. Run the init command to generate a .env.submit file for testing
    bash
    bun publish-extension init

    [!WARNING]

    Make sure to set the Firefox channel to "unlisted", chrome's publish target to "trustedTesters", and don't submit the extension for review for Chrome or Edge. This will prevent you from accidentally releasing one of the test extensions publicly.

  4. Run the dev commands to upload a test extension to the stores:
    bash
    bun dev:all
    bun dev:chrome
    bun dev:firefox
    bun dev:edge
    bun dev:opera

Issues· 8 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptchrome-extensionchrome-web-storeweb-extension

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言