Skip to content

fix(release-core): sync deps before building the release artifact - #1131

Merged
c-vigo merged 1 commit into
devfrom
bugfix/1130-sync-before-bundle
Jul 15, 2026
Merged

c-vigo merged 1 commit into
devfrom
bugfix/1130-sync-before-bundle

Conversation

@c-vigo

@c-vigo c-vigo commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

What

Add just sync before just bundle in the Build release artifact step of the scaffolded release-core.yml.

Why

For a JS-Action consumer, just bundle → npm run bundle → ncc …, and ncc (@vercel/ncc) is a devDependency present only after npm ci. The devkit toolchain preamble provisions the dev-shell but not the repo's node_modules, so the step exited 127 (ncc: command not found) and rolled back the final release. It only surfaces on a real final release (gated on release_kind == 'final' and a detected bundle recipe), so it slipped past normal CI.

This restores parity with the sync-then-build pattern every other build job already follows (just sync is language-neutral: npm ci for Node, uv sync for Python). No-op for consumers without a bundle recipe.

Observed downstream: vig-os/commit-action release 0.3.0 — failed run.

Changes

  • assets/workspace/.github/workflows/release-core.yml — just sync before just bundle.
  • CHANGELOG.md (+ synced .devcontainer/ mirror) — Fixed entry.

Refs: #1130

The finalize job's "Build release artifact" step ran `just bundle` without
a preceding `just sync`, so a JS-Action consumer's bundler (ncc, a
devDependency) was absent from PATH and the step exited 127 — rolling back
the final release. Run `just sync` first, matching every other build job.

Refs: #1130
@c-vigo

c-vigo commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

Downstream stopgap applying the same fix directly on commit-action's release/0.3.0 (so 0.3.0 can re-run before a re-scaffold): vig-os/commit-action#91. This PR is the durable upstream fix that will supersede it.

c-vigo added a commit to vig-os/commit-action that referenced this pull request Jul 15, 2026
## What

Add `just sync` before `just bundle` in the `Build release artifact`
step of `release-core.yml`, on `release/0.3.0`.

## Why

The 0.3.0 release rolled back: `Finalize Release Core → Build release
artifact` exited **127** because `just bundle` → `npm run bundle` → `ncc
…`, and `ncc` (`@vercel/ncc`) is a devDependency only present after `npm
ci`. The devkit toolchain provisions the dev-shell but not
`node_modules`, so the bundler was missing from PATH. See RCA in #90 and
the failed
[run](https://github.com/vig-os/commit-action/actions/runs/29423806600).

`just sync` (language-neutral: `npm ci` here) installs the deps first,
matching every other build job.

## Note — stopgap

`release-core.yml` is devkit-scaffolded. This is a local stopgap so
0.3.0 can be re-run **without waiting for a re-scaffold**. The durable
fix is upstream in vig-os/devkit#1131 (CI green, merging into devkit
`dev`); a future `DEVKIT_VERSION` bump will supersede this diff.

Refs: #90
@c-vigo
c-vigo merged commit 5f710cb into dev Jul 15, 2026
13 checks passed
@c-vigo
c-vigo deleted the bugfix/1130-sync-before-bundle branch July 15, 2026 15:21
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