Repository navigation
fix(ci): release and packaging process for monorepo structure - #220
Conversation
- add npm run compile before vsce package to ensure dist/ is fresh - Previous release would package stale or missing compiled files - Now matches pattern used in all-tests.yml CI workflow - correct paths for monorepo structure in vscodeignore - Only contains dist and necessary files
📝 WalkthroughWalkthroughInserted two new steps into the release workflow: a dependency reinstall ( Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
.github/workflows/release.yml (1)
64-65: Use the production build script for release artifacts.
npm run compilebuilds with sourcemaps enabled and minification disabled. Usenpm run packageinstead, which applies production settings (minification enabled, sourcemaps disabled) suitable for release distribution.Proposed change
- - name: Build extension - run: npm run compile + - name: Build extension + run: npm run package🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.github/workflows/release.yml around lines 64 - 65, Replace the workflow step that currently runs "npm run compile" (the Build extension step) with "npm run package" so the release job uses the production build script (minification enabled, sourcemaps disabled) for release artifacts; update the step's run command from npm run compile to npm run package and keep the step name "Build extension" unchanged.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In @.github/workflows/release.yml:
- Around line 64-65: Replace the workflow step that currently runs "npm run
compile" (the Build extension step) with "npm run package" so the release job
uses the production build script (minification enabled, sourcemaps disabled) for
release artifacts; update the step's run command from npm run compile to npm run
package and keep the step name "Build extension" unchanged.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 8fec0b69-0c63-4264-898c-4e52442a3489
📒 Files selected for processing (2)
.github/workflows/release.yml.vscodeignore
- minifies, checks types, lints, and sets production env var
Motivation:
Activation events weren't firing at all after using the .vsix from release 0.1.1. After looking deeper into the github releases, I found that 0.1.1 and 0.1.0 (which used the release.yml script) had .vsix of ~2 mb, and all earlier releases had ~12mb.
Solution:
The problem turned out to be that I didn't add "npm ci"(install deps) + "npm run compile"(compile) and it was literally somehow just packaging source code (AFAIK).
I added those two commands into the release script, as well as updated the .vscodeignore to reflect the new monorepo structure
Summary by CodeRabbit