Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/publishVSCode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,24 @@ jobs:
with:
changeCaseId: ${{ needs.ctc-open.outputs.changeCaseId }}
status: Not Implemented

# Set repo variable CBW_TRIGGER_ENABLED=false to disable dispatch to code-builder-web.
# Default (unset): dispatch after publish. Use when publishing without CBW promotion.
trigger-cbw-release:
needs: [publish, prepare-environment-from-main]
if: needs.publish.result == 'success' && vars.CBW_TRIGGER_ENABLED != 'false'

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we ever want to publish to MS Marketplace without promoting CBW we can turn off the functionality by adding CBW_TRIGGER_ENABLED=false as a repo variable

continue-on-error: true
runs-on: ubuntu-latest
steps:
- name: Trigger Code Builder Web release
env:
GH_TOKEN: ${{ secrets.IDEE_GH_TOKEN }}
run: |
VERSION="${{ needs.prepare-environment-from-main.outputs.RELEASE_VERSION }}"
echo "Dispatching extension-publish event to code-builder-web with version $VERSION"
gh api repos/forcedotcom/code-builder-web/dispatches \
--method POST \
-f event_type=extension-publish \
-f "client_payload[version]=$VERSION" \
-f "client_payload[source]=publishVSCode"
echo "Dispatch sent successfully"
2 changes: 2 additions & 0 deletions contributing/publishing.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ find ~/Downloads/v64.8.0 -type f -name "*.vsix" -exec code --install-extension {

After completing your release testing following our internal template, approve the publish job "Publish in Microsoft Marketplace" and "Publish in Open VSX Registry" to allow the extensions to be uploaded and complete the release process.

**Code Builder Web promotion:** After publishing to the MS Marketplace, the workflow dispatches to `code-builder-web` to trigger a CBW release and auto-promote to production. Set repo variable `CBW_TRIGGER_ENABLED=false` (Settings → Secrets and variables → Actions → Variables) to publish without triggering CBW. Default (unset) enables the trigger.

## Troubleshooting

- 401 errors on publish? You probably need to update the VSCE PAT. https://salesforce.quip.com/E8GWA5TuI8jp
Expand Down
Loading