Skip to content

fix(ci): release and packaging process for monorepo structure - #220

Merged
Avni2000 merged 2 commits into
mainfrom
stale-vsix
Apr 11, 2026
Merged

Avni2000 merged 2 commits into
mainfrom
stale-vsix

Conversation

@Avni2000

@Avni2000 Avni2000 commented Apr 11, 2026 •

Copy link
Copy Markdown
Owner

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

  • Chores
    • Release workflow now runs an extra dependency install step and a package build phase before changelog generation to improve build verification.
    • Refined editor/package ignore patterns to exclude unnecessary dev/test artifacts while preserving compiled output and essential assets.

- 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
@coderabbitai

coderabbitai Bot commented Apr 11, 2026 •

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

Inserted two new steps into the release workflow: a dependency reinstall (npm ci) and a packaging build (npm run package) placed between lockfile-only install and changelog generation; updated .vscodeignore to use more targeted ignore patterns for source, tests, fixtures, and tooling artifacts.

Changes

Cohort / File(s) Summary
Release workflow
/.github/workflows/release.yml
Added npm ci (after npm install --package-lock-only) and npm run package steps before changelog generation, introducing two new build phases in the release job.
VS Code package ignore
/.vscodeignore
Replaced broad ignore rules with targeted exclusions: now ignores apps/**, packages/**, test fixtures (test-fixtures/**, apps/vscode-extension/tests/**), Playwright outputs, specific config/build files, tooling cache (.claude/**), readme-assets/**, and node_modules/**, while keeping out/**.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

  • [CI] Add Release gh action #181 — Modifies the same .github/workflows/release.yml and earlier introduced or rearranged release steps that this PR further adjusts.

Poem

🐰 I hopped through CI with a careful shove,
Reinstalled the nuts, then packed with love.
Ignored the thorns and kept the sprout,
A tidy bundle — ready to shout! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly describes the main change: fixing the CI release and packaging process for a monorepo structure, which directly addresses the motivation (missing compiled output in .vsix artifacts).
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch stale-vsix

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
.github/workflows/release.yml (1)

64-65: Use the production build script for release artifacts.

npm run compile builds with sourcemaps enabled and minification disabled. Use npm run package instead, 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

📥 Commits

Reviewing files that changed from the base of the PR and between e3d4f05 and c4efd4d.

📒 Files selected for processing (2)
  • .github/workflows/release.yml
  • .vscodeignore

- minifies, checks types, lints, and sets production env var
@Avni2000
Avni2000 enabled auto-merge April 11, 2026 17:13
@Avni2000
Avni2000 merged commit f8aa5fa into main Apr 11, 2026
5 checks passed
@Avni2000
Avni2000 deleted the stale-vsix branch April 11, 2026 17:18
Avni2000 added a commit that referenced this pull request Apr 11, 2026
Avni2000 added a commit that referenced this pull request Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant