Repository navigation
ci: publish the VS Code extension from a release tag - #20
Merged
Merged
Conversation
The Marketplace step needed an Azure DevOps PAT that is not stored on this machine, so the last step of every release had to be run by hand. Add .github/workflows/publish.yml on the QuotaDeck model: a v* tag push re-runs the unit tests and the real-Pandoc E2E exports, builds the VSIX, publishes it through Marketplace Trusted Publishing (--oidc, no PAT) and attaches the same VSIX to a GitHub Release. The publisher's Trusted Publishing policy has to name this repository and this workflow file. Two gates protect the shared version line: the tag must equal the extension version, and the Dify plugin's manifest.yaml must carry that same version, so a tag that moved only one of the two products cannot publish a VSIX whose plugin counterpart does not exist yet. Release notes come from the README's '### Changes in <version>' section, which is where this repository keeps its changelog.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follows the QuotaDeck pattern: the VS Marketplace step needed an Azure DevOps PAT that is not stored on this machine, so the last step of every release had to be run by hand.
What it does
.github/workflows/publish.ymlfires on av*tag push:npm test) and the real-Pandoc E2E exports (npm run test:e2e)npm run package)npx @vscode/vsce@4.1.1 publish --oidc, no PAT stored anywhere — with--skip-duplicateso a re-run is idempotent### Changes in <version>sectionPermissions follow the Scorecard-minimal layout:
permissions: contents: readat the workflow level,contents: write+id-token: writeon the job. The OIDC token is what Trusted Publishing mints.Two gates
VSC-plugin-MD2Docx-Converter/package.json's versiondify-plugin-MD2Docx/manifest.yamlmust carry that same version (version:andmeta.version:)The two products share one version line, so a tag that moved only one of them would publish a VSIX whose Dify plugin counterpart does not exist yet.
One thing outside the repository
The publisher's Trusted Publishing policy on the VS Marketplace has to name this repository and this workflow file. Until that is configured, the publish step will fail — everything up to it still works.
The Dify plugin release is unchanged: it still goes through the Marketplace PR flow with a manually built
.difypkg.CLAUDE.mdis updated to describe the new path instead of the manual PAT flow.