Skip to content

Latest commit

 

History

History
121 lines (95 loc) · 4.25 KB

README.md

File metadata and controls

121 lines (95 loc) · 4.25 KB

plasmo logo banner

See License NPM Install Follow PlasmoHQ on Twitter Watch our Live DEMO every Friday Join our Discord for support and chat about our projects typescript-action status

Browser Market Submit

A NodeJS library from Plasmo to submit browser extensions to multiple stores. It is made to be used in the Browser Platform Publisher action.

Supported stores:

Unsupported stores:

  • Opera Add-ons: They do not have an automation API, and their cookie expires in 24 hours, making them unsuitable for CI/CD.

Core packages used

Installing

npm i -D @plasmohq/bms
# or
pnpm i -D @plasmohq/bms
# or
yarn add -D @plasmohq/bms

Usage

Following this doc to gather the tokens necessary for the deployment, OR use bpp's json schema which provides intellisense on editors such as vscode. To use the json schema, create a keys.json file in vscode with the following content:

{
  "$schema": "https://raw.githubusercontent.com/PlasmoHQ/bpp/v2/keys.schema.json"
}

Then, the nodejs API can be consumed as follows:

import {
  submitChrome,
  submitEdge,
  submitFirefox,
} from "@plasmohq/bms"

submitChrome({
  extId: "EXT_ID",
  refreshToken: "refreshToken",
  clientId: "clientIdsubmit",
  clientSecret: "clientSecret",
  zip: "dist/some-zip-v{version}.zip",
  verbose: false
})

submitFirefox({
  extId: "EXT_ID",
  apiKey: "api_key",
  apiSecret: "api_secret",
  zip: "dist/some-zip-v{version}.zip",
  verbose: false
})

submitEdge({
  clientId: "aaaaaaa-aaaa-bbbb-cccc-dddddddddddd",
  clientSecret: "abcdefg",
  productId: "aaaaaaa-aaaa-bbbb-cccc-dddddddddddd",
  accessTokenUrl: "https://login.microsoftonline.com/aaaaaaa-aaaa-bbbb-cccc-dddddddddddd/oauth2/v2.0/token",
  zip: "dist/some-zip-v{version}.zip",
  notes: "Changes for reviewers",
  verbose: false
})

Support

Join our Discord channel!

Acknowledgment

This library was inspired by:

License

MITPlasmo Corp.