Add tag-driven publish workflow with GitHub Release#17
Merged
Conversation
Pushing a v*.*.* tag now lints, tests, packages, publishes to the VS Code Marketplace and Open VSX, and creates a matching GitHub Release with the corresponding CHANGELOG section as the body and the .vsix attached. workflow_dispatch supports an optional pre-release toggle. Adds release:patch/minor/major scripts that bump, tag, and push in one shot to trigger the workflow.
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.
Summary
.github/workflows/publish.ymltriggered byv*.*.*tag push (and manualworkflow_dispatch); runs lint / format:check / test / compile / package, then publishes to the VS Code Marketplace and Open VSX, and creates a matching GitHub Release with the correspondingCHANGELOG.mdsection as the body and the built.vsixattached.package.jsonversion disagree.release:patch/release:minor/release:majornpm scripts wrapnpm version <type> -m 'Release v%s' && git push --follow-tagsso a single command bumps, tags, and triggers the workflow.continue-on-error: trueso an Open VSX outage doesn't block the GitHub Release / Marketplace publish.PUBLISHING.mdupdated to document the automated flow, theVSCE_PAT/OVSX_PATsecrets, and the manual-dispatch toggles.Test plan
VSCE_PAT(and optionallyOVSX_PAT) to repo Secretspackage.jsonpublishermatches a publisher you own on the marketplacenpm run release:patch(or higher) and watch the Publish workflow run end-to-end.vsixattachment all appear