Conversation
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR adds GitHub Actions-based CI/CD for building and packaging the VS Code extension, producing downloadable VSIX artifacts for PR review and automatically creating GitHub Releases from main. It also documents the CI setup and adds an npm script intended for manual Marketplace publishing.
Changes:
- Add PR workflow to build/package the extension and upload a VSIX artifact for reviewers.
- Add release workflow to build/package on
mainand create a GitHub Release tagged frompackage.json’s version. - Add CI setup documentation and a new npm script for manual
vsce publish.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 7 comments.
| File | Description |
|---|---|
| package.json | Adds a new npm script to publish via vsce. |
| CI-SETUP.md | New documentation describing workflows, secrets, and manual testing/publishing steps. |
| .github/workflows/release.yml | New workflow to build/package and create a GitHub Release with the VSIX attached. |
| .github/workflows/pr-build.yml | New workflow to build/package and upload VSIX artifacts for PRs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+52
to
+60
| # Create GitHub Release with VSIX attached | ||
| - name: Create GitHub Release | ||
| uses: softprops/action-gh-release@v2 | ||
| with: | ||
| tag_name: ${{ steps.version.outputs.tag }} | ||
| name: Hermes VS Code ${{ steps.version.outputs.tag }} | ||
| files: hermes-*.vsix | ||
| generate_release_notes: true | ||
| fail_on_unmatched_files: true |
Comment on lines
+16
to
+17
| packages: write # for GitHub Packages (if used later) | ||
| attestations: write # for artifact attestation |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.
This pull request introduces a complete CI/CD setup for building, packaging, and releasing the VS Code extension using GitHub Actions. It adds automated workflows for both pull request builds (with downloadable artifacts for reviewers) and tagged releases (with automatic GitHub Release creation and artifact attachment). Documentation is included to explain the workflows and required secrets. Additionally, a new npm script is added to support manual publishing to the VS Code Marketplace.
The most important changes are:
CI/CD Workflows:
.github/workflows/pr-build.ymlto automatically build and package the extension on every pull request tomain, uploading a.vsixartifact for manual reviewer testing..github/workflows/release.ymlto build, package, and create a GitHub Release with the.vsixattached on every push tomain, extracting the version frompackage.jsonfor tagging.Documentation:
CI-SETUP.mdwith detailed explanations of the new workflows, required secrets, manual testing instructions, versioning guidelines, and troubleshooting tips.NPM Scripts:
publishscript topackage.jsonfor manual publishing to the VS Code Marketplace using aVSCE_TOKENpersonal access token.