Skip to content

Commit 590a250

Browse files
committed
Add dedicated VS Code extension GitHub Release and changeset
Add a new publish.yml step that creates a separate `b2c-vs-extension@X.Y.Z` GitHub Release with the VSIX attached, so users can easily find and download the latest extension. The release is marked `--latest=false` to avoid overtaking the primary npm publish releases. The step only runs when the extension publishes alongside other packages (to avoid duplicating the combined release when extension-only).
1 parent add48bf commit 590a250

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@salesforce/b2c-tooling-sdk': minor
3+
---
4+
5+
Add `EnvSource` config source that maps `SFCC_*` environment variables to config fields, enabling VS Code extension and other consumers to resolve config from `.env` files and environment variables

.github/workflows/publish.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,35 @@ jobs:
400400
env:
401401
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
402402

403+
- name: Create VS Code extension release
404+
if: >-
405+
steps.release-type.outputs.type == 'stable'
406+
&& steps.packages.outputs.publish_vsx == 'true'
407+
&& (steps.packages.outputs.publish_cli == 'true' || steps.packages.outputs.publish_sdk == 'true' || steps.packages.outputs.publish_mcp == 'true')
408+
run: |
409+
VSX_TAG="b2c-vs-extension@${{ steps.packages.outputs.version_vsx }}"
410+
411+
# Create a dedicated release for the extension (not latest — main releases own that)
412+
gh release create "$VSX_TAG" \
413+
--title "VS Code Extension ${{ steps.packages.outputs.version_vsx }}" \
414+
--latest=false \
415+
--notes "$(cat <<'NOTES'
416+
## B2C DX VS Code Extension v${{ steps.packages.outputs.version_vsx }}
417+
418+
Download the \`.vsix\` file below and install via:
419+
\`\`\`
420+
code --install-extension b2c-vs-extension-${{ steps.packages.outputs.version_vsx }}.vsix
421+
\`\`\`
422+
423+
Or in VS Code: Extensions → ⋯ → Install from VSIX...
424+
NOTES
425+
)"
426+
427+
# Upload the VSIX to the dedicated release
428+
gh release upload "$VSX_TAG" packages/b2c-vs-extension/*.vsix
429+
env:
430+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
431+
403432
- name: Trigger documentation deployment
404433
if: >-
405434
steps.release-type.outputs.type == 'stable' && steps.changesets.outputs.skip != 'true' && steps.quick-check.outputs.skip != 'true'

0 commit comments

Comments
 (0)