Skip to main content

Publish your blocklet to the world

Publish to Blocklet Store

Publish to Blocklet Store

  1. Register as a developer from the Blocklet Store
  1. Create a new access key
    • Use blocklet connect <store-url> command to create and access key from store
  1. Bundle your blocklet
  1. Upload your blocklet
    • Use blocklet upload to upload your blocklet bundle to store
  1. Login to the uploaded Blocklet Store, you can see the uploaded Blocklet in the "My Blocklet" page in Admin Dashboard
  2. The uploaded Blocklet is still in the "draft" status, click the "publish" button to publish

Publish to multiple stores

  • Use blocklet connect <store-url> --profile <profile> to save access token of different stores
  • Use blocklet upload --profile <profile> to upload your blocklet bundle to multiple stores

Caveats

If you need to publish your blocklet to multiple stores during the distribution workflow, and if your blocklet has dependency components, the recommended way to declare dependency is following:

  • Development: Set COMPONENT_STORE_URL="https://test.store.blocklet.dev" in your .env.local
  • Production: Set COMPONENT_STORE_URL in your github action workflow.

Note

TODO: ## Host with github release

Note

TODO: ## Other hosting options