Skip to content

fix(ci): use fleet setup-and-install instead of npm ci in publish workflow - #69

Merged
John-David Dalton (jdalton) merged 1 commit into
mainfrom
fix/publish-workflow-pnpm
Jul 29, 2026
Merged

fix(ci): use fleet setup-and-install instead of npm ci in publish workflow#69
John-David Dalton (jdalton) merged 1 commit into
mainfrom
fix/publish-workflow-pnpm

Conversation

@jdalton

Copy link
Copy Markdown
Contributor

Defect

.github/workflows/publish.yml runs npm ci in a pnpm-locked repo.

Failure mode

npm ci requires package-lock.json; this repo only has pnpm-lock.yaml, and devEngines.packageManager pins pnpm with onFail: "error". The install step fails on every tag push, so the marketplace/OpenVSX publish path never runs as written.

Fix

Replace the bare actions/setup-node + npm ci pair with the repo's own fleet composite, ./.github/actions/fleet/setup-and-install, invoked exactly as the sibling ci.yml invokes it (including socket-api-token). No workflow step invokes npm run scripts, so nothing else needed conversion; the publish/release steps already use local composites.

Provenance

Found by a fleet-wide code-as-law audit dated 2026-07-28.

Follow-ups deliberately NOT done here

  • The publish-vscode-extension composite still packages via npx --yes @vscode/vsce internally (vendored from socket-registry); aligning that with the pnpm posture is upstream re-vendor work.
  • ci.yml's workflow-level FLEET_ENV telemetry knobs were not copied over, since this workflow does not run check --all.

…kflow

The publish workflow ran npm ci, but this repo is pnpm-locked (only
pnpm-lock.yaml exists, and devEngines pins pnpm with onFail=error), so
the install step fails before any store publish can happen. Replace the
setup-node + npm ci pair with the local fleet setup-and-install
composite, invoked exactly as ci.yml invokes it.
@jdalton
John-David Dalton (jdalton) merged commit 44b2cc9 into main Jul 29, 2026
13 checks passed
@jdalton
John-David Dalton (jdalton) deleted the fix/publish-workflow-pnpm branch July 29, 2026 00:23
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