Skip to content

@W-22108538 publish marketplace listing via forcedotcom/b2c-dx#464

Open
clavery wants to merge 2 commits into
mainfrom
vsx-publishing-via-b2c-dx
Open

@W-22108538 publish marketplace listing via forcedotcom/b2c-dx#464
clavery wants to merge 2 commits into
mainfrom
vsx-publishing-via-b2c-dx

Conversation

@clavery

@clavery clavery commented Jun 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

The Visual Studio Marketplace requires the extension's repository URL to live under a Salesforce-controlled org (forcedotcom). This PR points the marketplace listing at the new forcedotcom/b2c-dx repo and routes each release through a review PR there before anything reaches the marketplaces.

  • packages/b2c-vs-extension/package.jsonrepositoryhttps://github.com/forcedotcom/b2c-dx.git; homepage updated. bugs continues to point at this monorepo so issues stay here.
  • .github/workflows/publish.yml — new step opens a release PR in forcedotcom/b2c-dx (branch release/b2c-vs-extension-X.Y.Z, CHANGELOG section spliced in, releases/latest.json marker rewritten). Step soft-skips with a warning if B2C_DX_PUBLISH_TOKEN is unset, so unrelated CI is unaffected during rollout.
  • packages/b2c-vs-extension/PUBLISHING.md (new) — full runbook: automatic flow, where to watch each step, manual fallbacks for each stage, and token rotation notes.
  • packages/b2c-vs-extension/README.md — short callout that publishing happens out of `forcedotcom/b2c-dx`.
  • Includes a small `chore` commit moving `swagger-ui-dist` from `devDependencies` to `dependencies` (it's loaded at runtime).

Release flow after this lands

  1. Monorepo cuts a stable release of `b2c-vs-extension`, builds + attaches the VSIX (unchanged).
  2. New step opens a PR on `forcedotcom/b2c-dx` titled `Release b2c-vs-extension X.Y.Z`.
  3. Maintainer reviews and merges the PR — this is the manual gate.
  4. `forcedotcom/b2c-dx`'s on-merge workflow downloads the VSIX from this monorepo's release, creates a release on b2c-dx, and the release event fires `vsce publish` + `ovsx publish`.

See the new `PUBLISHING.md` for full detail and manual fallback paths.

Required setup before this is functional

The `forcedotcom/b2c-dx` repo bootstrap is staged in a separate working copy (not in this PR). Manual steps required to enable end-to-end publishing are listed in the comment that accompanies this PR.

Test plan

  • Land this PR; confirm `pnpm run lint:agent` stays green (verified locally).
  • Bootstrap `forcedotcom/b2c-dx` from the staged files.
  • Provision `B2C_DX_PUBLISH_TOKEN` in this repo's secrets and the marketplace tokens in `forcedotcom/b2c-dx`.
  • Cut a smoke-test stable release; verify the release PR opens in `forcedotcom/b2c-dx` and the merge flow ends in successful marketplace publishes.

clavery added 2 commits June 1, 2026 14:30
The bundled Swagger UI assets are loaded by the extension at runtime, so
the dependency belongs in `dependencies` rather than `devDependencies`.
The Visual Studio Marketplace requires the extension's repository URL to
live under a Salesforce-controlled org. Point package.json#repository at
forcedotcom/b2c-dx and route each release through a review PR there:

- publish.yml now opens a release PR in forcedotcom/b2c-dx (CHANGELOG
  splice + releases/latest.json marker) instead of pushing a release
  directly. Merging the PR is the manual gate; the b2c-dx on-merge
  workflow then creates the GitHub release that fires the marketplace
  publish workflows.
- Extension README and a new PUBLISHING.md describe the flow and the
  manual fallbacks (open PR by hand, re-run a workflow, publish locally).
- Step is gated on B2C_DX_PUBLISH_TOKEN; missing token soft-skips with a
  warning so unrelated CI doesn't break during rollout.

The extension's bugs URL still points to this monorepo so issues
continue to land here.
@clavery clavery requested a review from wei-liu-sf as a code owner June 1, 2026 18:40
@clavery clavery changed the title feat(vs-extension): publish marketplace listing via forcedotcom/b2c-dx @W-22108538 publish marketplace listing via forcedotcom/b2c-dx Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant