- Add publish.yml workflow for automated publishing - Publish to VS Code Marketplace and Open VSX - Publish @hanzo/mcp to npm - Publish JetBrains plugin to JetBrains Marketplace - Package browser extension for Chrome/Firefox stores - Add PUBLISHING.md with setup instructions and secrets
3.5 KiB
3.5 KiB
Publishing Hanzo Extensions
This document describes how to publish Hanzo extensions to various marketplaces.
Required Secrets
Add these secrets to your GitHub repository settings:
| Secret | Description | How to Get |
|---|---|---|
VSCE_PAT |
VS Code Marketplace token | Create PAT |
OVSX_PAT |
Open VSX Registry token | Create token |
NPM_TOKEN |
npm publish token | npm token create or npm.js tokens |
JETBRAINS_TOKEN |
JetBrains Marketplace token | Generate token |
CERTIFICATE_CHAIN |
JetBrains plugin signing cert | Plugin signing |
PRIVATE_KEY |
JetBrains plugin signing key | See above |
PRIVATE_KEY_PASSWORD |
JetBrains key password | See above |
Publishing Methods
Automatic (GitHub Actions)
- Create a GitHub release with a version tag (e.g.,
v1.6.0) - The
publish.ymlworkflow will automatically publish to all marketplaces
Or manually trigger:
gh workflow run publish.yml
Manual Publishing
VS Code Marketplace
cd packages/vscode
pnpm install
pnpm run compile
vsce package --no-dependencies
vsce publish -p YOUR_TOKEN
Open VSX Registry
cd packages/vscode
ovsx publish *.vsix -p YOUR_TOKEN
npm (@hanzo/mcp)
cd packages/mcp
npm run build
npm publish --access public
JetBrains Marketplace
cd packages/jetbrains
./gradlew publishPlugin
# Requires PUBLISH_TOKEN environment variable
Chrome Web Store
- Build:
cd packages/browser && pnpm run build - Package:
zip -r extension.zip dist/ src/manifest.json src/*.html src/*.css - Upload at Chrome Developer Dashboard
Firefox Add-ons
- Build:
cd packages/browser && pnpm run build - Package:
zip -r extension.zip dist/ src/manifest.json src/*.html src/*.css - Upload at Firefox Add-ons Developer Hub
Version Management
All packages use the same version from the root package.json:
# Bump version
npm version patch # or minor, major
git push --tags
Marketplace Links
- VS Code Marketplace
- Open VSX Registry
- npm @hanzo
- JetBrains Marketplace
- Chrome Web Store
- Firefox Add-ons
First-Time Setup
VS Code Marketplace Publisher
- Create Azure DevOps organization at dev.azure.com
- Create publisher at marketplace.visualstudio.com/manage
- Publisher ID:
hanzo-ai
JetBrains Marketplace Vendor
- Register at plugins.jetbrains.com
- Create vendor:
hanzo-ai - Configure plugin signing (required for paid plugins)
Chrome Web Store Developer
- Register at Chrome Developer Dashboard
- Pay one-time $5 developer fee
- Verify identity
Firefox Developer
- Register at Firefox Add-ons
- Complete developer agreement